Potku  1.0.0
Class Documentation
 All Classes Namespaces Functions
Modules.Masses.Masses Class Reference

Public Member Functions

def __init__
 
def load_isotopes
 
def get_standard_isotope
 
def get_most_common_isotope
 

Public Attributes

 isotopes
 

Detailed Description

Masses class handles all element isotopes' masses.

Constructor & Destructor Documentation

def Modules.Masses.Masses.__init__ (   self,
  filepath 
)
Inits Masses object

Args:
    filepath: String representing filepath to masses.dat

Member Function Documentation

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).

The documentation for this class was generated from the following file: