jorge-ramirez-upm / RepTate

RepTate (Rheology of Entangled Polymers: Toolkit for Analysis of Theory & Experiment)
https://reptate.readthedocs.io/
GNU General Public License v3.0
25 stars 7 forks source link

Error in DSMLinear theory #138

Closed vbdr closed 4 years ago

vbdr commented 4 years ago

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'

jorge-ramirez-upm commented 4 years ago

Solved! I had not implemented the theory correctly