Isotope Queries¶
Isotopes
Querying Class¶
-
class
iniabu.isotopes.
Isotopes
(parent, isos, unit='num_lin', *args, **kwargs)¶ Class representing the isotopes.
This is mainly a list to easily interact with the parent._iso_dict dictionary.
- Example:
>>> from iniabu import ini >>> isotope = ini.iso["Si-28"] >>> isotope.abu_rel 0.9223
Note
You can also call isotopes using alternative spellings, e.g., “28Si” or “Si28”.
Warning
This class should NOT be manually created by the user. It is designed to be initialized by
iniabu.IniAbu
-
a
¶ Get total number of nucleons for given isotope.
Returns the total number of nucleons for the given isotope. Sure, this is already passed as an argument in the isotope name, however, might be useful for plotting to have a return for it.
Returns: Mass number of isotope Return type: int, ndarray<int>
-
a_all
¶ Get total number of nucleons for all available isotope(s).
Returns the total number of nucleons for the given isotope. Sure, this is already passed as an argument in the isotope name, however, might be useful for plotting to have a return for it. All available isotopes means stable and unstable.
Returns: Mass number of isotope Return type: int, ndarray<int>
-
abu_rel
¶ Get relative abundance of isotope(s).
Returns the relative abundance of the selected isotope(s). Returns the result either as a
float
or as a numpyndarray
. Note: All relative abundances sum up up to unity. If you are using “mass_fractions” as units, relative abundances will also be in mass fractions.Returns: Relative abundance of isotope(s) Return type: float,ndarray
-
abu_rel_all
¶ Get relative abundance of all available isotope(s).
Returns the relative abundance of the selected isotope(s). Returns the result either as a
float
or as a numpyndarray
. Note: All relative abundances sum up up to unity. If you are using “mass_fractions” as units, relative abundances will also be in mass fractions. All available isotopes means stable and unstable.Returns: Relative abundance of isotope(s) Return type: float,ndarray
-
abu_solar
¶ Get solar abundance of isotope(s).
Returns the solar abundance of the selected isotope(s). Returns the result either as a
float
or as a numpyndarray
. Note: Not all databases contain this information. If the information is not available, these values will be filled withnp.nan
.Returns: Solar abundance of isotope(s) Return type: float,ndarray
-
abu_solar_all
¶ Get solar abundance of all available isotope(s).
Returns the solar abundance of the selected isotope(s). Returns the result either as a
float
or as a numpyndarray
. Note: Not all databases contain this information. If the information is not available, these values will be filled withnp.nan
. All available isotopes means stable and unstable.Returns: Solar abundance of isotope(s) Return type: float,ndarray
-
mass
¶ Get the mass of an isotope.
Returns: Mass of an isotope. Return type: float,ndarray<float>
-
mass_all
¶ Get the mass of all available isotopes.
All available isotopes means stable and unstable.
Returns: Mass of an isotope. Return type: float,ndarray<float>
-
name
¶ Get the name of an isotope.
If an alternative spelling was used to call the isotope, e.g., “Si28” or “28Si”, the name will still be returned as “Si-28”, which is the default for iniabu.
Returns: Name of the set isotope(s). Return type: str, list(str)
-
name_all
¶ Get the names of all available isotope.
If an alternative spelling was used to call the isotope, e.g., “Si28” or “28Si”, the name will still be returned as “Si-28”, which is the default for iniabu. All available isotopes means stable and unstable.
Returns: Name of the set isotope(s). Return type: str, list(str)
-
z
¶ Get the number of protons for the isotopes.
Returns: Number of protons for the set isotope(s). Return type: int, ndarray<int>
-
z_all
¶ Get the number of protons for the isotopes.
All available isotopes means stable and unstable.
Returns: Number of protons for the set isotope(s). Return type: int, ndarray<int>