|
Potku
1.0.0
Class Documentation
|
Public Member Functions | |
| def | __init__ |
| def | load_isotopes |
| def | get_standard_isotope |
| def | get_most_common_isotope |
Public Attributes | |
| isotopes | |
Masses class handles all element isotopes' masses.
| def Modules.Masses.Masses.__init__ | ( | self, | |
| filepath | |||
| ) |
Inits Masses object
Args:
filepath: String representing filepath to masses.dat
| def Modules.Masses.Masses.get_most_common_isotope | ( | self, | |
| element | |||
| ) |
Get the most common isotope for an element.
Args:
element: String representing element.
Return:
Returns the most common isotope for the element (int)
and the propability (commonness) of the isotope (float)
as a tuple(int, float).
| def Modules.Masses.Masses.get_standard_isotope | ( | self, | |
| element | |||
| ) |
Calculate standard element weight.
Args:
element: String representing element.
Return:
Returns standard weight of given element (float).
| def Modules.Masses.Masses.load_isotopes | ( | self, | |
| element, | |||
| combobox, | |||
current_isotope = None |
|||
| ) |
Load isotopes into given combobox.
Args:
element: String representing selected element of which
isotopes are loaded.
combobox: QComboBox to which items are added.
current_isotope: Current isotope to select it on combobox by default
(string).