Campbell-Muscle-Lab / PyMyoVent

PyMyoVent is computer code that simulates an idealized ventricle pumping blood around a single circulation.
http://Campbell-Muscle-Lab.github.io/PyMyoVent/index.html
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

KeyError: 'rates_file_string' #31

Open zoezhang106 opened 2 years ago

zoezhang106 commented 2 years ago

Thank you very much for your packages. I have a basic question regarding the demo. Would you please help me to solve it?

I followed the installation and demo from here, https://campbell-muscle-lab.github.io/PyMyoVent/pages/demos/getting_started/base_sim/base_sim.html

(PyMyoVent) H:\cardiorenalmodel\PyMyoVent-master\Python_code>python PyMyoVent.py run_batch ../demos/getting_started/base_sim/batch_base_sim.json Initialising single_ventricle_circulation from H:\cardiorenalmodel\PyMyoVent-master\Python_code..\demos\getting_started\base_sim\sim_input/model.json on thread_id 0 Full dump mode, writing 40000 time-points Thread_id[0]: Sim time (s): 0 0% complete {} Traceback (most recent call last): File "PyMyoVent.py", line 193, in PyMyoVent_main() File "PyMyoVent.py", line 30, in PyMyoVent_main run_batch(sys.argv[2]) File "PyMyoVent.py", line 90, in run_batch worker(batch_jobs[0], 0) File "PyMyoVent.py", line 119, in worker sim_results_file_string=job['sim_results_file_string']) File "H:\cardiorenalmodel\PyMyoVent-master\Python_code\single_ventricle_circulation\single_ventricle_circulation.py", line 328, in run_simulation self.implement_time_step(time_step) File "H:\cardiorenalmodel\PyMyoVent-master\Python_code\single_ventricle_circulation\single_ventricle_circulation.py", line 548, in implement_time_step self.so.dump_rates_file() File "H:\cardiorenalmodel\PyMyoVent-master\Python_code\sim_options\sim_options.py", line 175, in dump_rates_file print('Writing rates to: %s' % self.data['rates_file_string']) KeyError: 'rates_file_string'