nucml.objects package¶
Submodules¶
nucml.objects.objects module¶
-
nucml.objects.objects.
get_element
(zan_dict, Z, A, N)[source]¶ Gets the element identifier given the number of protons, mass number, and neutrons using the dictionary obtained from load_zan().
- Parameters
zan_dict (dict) – Dictionary obtained from the load_zan() function.
Z (int) – Number of protons.
A (int) – Mass number.
N (int) – Number of neutrons.
- Returns
Element tag.
- Return type
str
-
nucml.objects.objects.
get_isotope
(zan_dict, Z, A, N)[source]¶ Gets the isotope identifier given the number of protons, mass number, and neutrons using the dictionary obtained from load_zan().
- Parameters
zan_dict (dict) – Dictionary obtained from the load_zan() function.
Z (int) – Number of protons.
A (int) – Mass number.
N (int) – Number of neutrons.
- Returns
Element tag.
- Return type
str
-
nucml.objects.objects.
load_zan
(type='EXFOR')[source]¶ Loads a python dictionary containing proton, mass number, and neutron number mapping to isotopes in either EXFOR or AME format (i.e. {‘912’:’C12’}).
If type is EXFOR the isotope format is ELAAA (i.e. C12). If AME the format is AAAEL (i.e. 12C).
- Parameters
type (str, optional) – Dictionary values format. Can be EXFOR or AME. Defaults to “EXFOR”.
- Returns
dict