def cheat_load(self) -> None: """ Method for automatically loading a CSV during development. Call in the constructor of this class """ input_file = "/home/matthew/Code/concordia-applications/UPb-Unmixer/tests/unmixTest.csv" Settings.set_current_file(input_file) # input_file = "C:/Users/mdagg/Documents/Programming/CurtinConcordia/tests/unmixTest.csv" self._import_csv(input_file, Settings.get(SettingsType.IMPORT))
def import_csv(self) -> None: input_file = self.view.get_input_file() if not input_file: return Settings.set_current_file(input_file) def callback(settings: ImportSettings): if not settings: return Settings.update(settings) self._import_csv(input_file, settings) self.view.get_settings(SettingsType.IMPORT, callback)