In LVE, with a generic .tts file, the theory DSMLinear crashes as it is looking for “file_parameters["MK”]”
TODO: add exception handling
Error Traceback:
File "gui/QDataSet.py", line 983, in handle_actionNew_Theory
self.new_theory(th_name)
File "gui/QDataSet.py", line 1000, in new_theory
newth = self.do_new(th_name, calculate)
File "core/DataSet.py", line 1004, in do_new
th.do_calculate('')
File "core/Theory.py", line 364, in do_calculate
self.function(f)
File "theories/TheoryDSMLinear.py", line 254, in calculate
MK = float(f.file_parameters["MK"]) #units of Da
KeyError: 'MK'
In LVE, with a generic .tts file, the theory DSMLinear crashes as it is looking for “file_parameters["MK”]”
TODO: add exception handling
Error Traceback: File "gui/QDataSet.py", line 983, in handle_actionNew_Theory self.new_theory(th_name) File "gui/QDataSet.py", line 1000, in new_theory newth = self.do_new(th_name, calculate) File "core/DataSet.py", line 1004, in do_new th.do_calculate('') File "core/Theory.py", line 364, in do_calculate self.function(f) File "theories/TheoryDSMLinear.py", line 254, in calculate MK = float(f.file_parameters["MK"]) #units of Da KeyError: 'MK'