Ejemplo n.º 1
0
 def __open_absorption_coefficient_window(self):
     try:
         # window = AbsorptionCoefficientWindow(self)
         # Window.start(window)
         self.parent.child_windows.append(AbsorptionCoefficientWindow(self))
     except Exception as e:
         hapiest_util.debug(e)
    def populate_data_names(self):
        try:
            data_names = hapiest_util.get_all_data_names()
            for item in data_names:
                self.gui.data_name.addItem(item)

        except Exception as e:
            hapiest_util.debug(str(e))
            hapiest_util.err_log(str(e))
            hapiest_util.err_log("Failed to populate data names...")
Ejemplo n.º 3
0
    def __init__(self, filename):
        self.filename = filename

        # A list of the isotopologues that this hmd file has
        self.isos = []
        # A list of the isos as tuples (M, I)
        self.iso_tuples = []

        try:
            with open(Config.data_folder + "/" + self.filename +
                      ".hmd") as file:
                reader = csv.reader(file)
                for row in reader:
                    for iso in row:
                        self.isos.append(Isotopologue.from_global_id(int(iso)))
        except Exception as e:
            hapiest_util.debug(str(e))

        for item in self.isos:
            self.iso_tuples.append((item.molecule_id, item.iso_id))
Ejemplo n.º 4
0
 def call(x):
     try:
         self.callback(x)
     except Exception as e:
         hapiest_util.debug(e)
Ejemplo n.º 5
0
 def t():
     try:
         QtWidgets.QApplication.processEvents(
             QtCore.QEventLoop.AllEvents)
     except Exception as e:
         hapiest_util.debug(e)