InstituteforDiseaseModeling / laser

Light Agent Spatial modeling for ERadication
MIT License
2 stars 5 forks source link

running idmlaser on COMPS #18

Closed krosenfeld-IDM closed 1 month ago

krosenfeld-IDM commented 1 month ago

I'm using https://github.com/InstituteforDiseaseModeling/laser/commit/f598b877f2b20694a3aaa60ef6bd3a7171eab047 and run_laser_with_sf.py. Currently getting error:

Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/202407_laser/jb_src/src/idmlaser/measles.py", line 17, in <module>
    from . import sir_numpy_c as model
  File "/202407_laser/jb_src/src/idmlaser/sir_numpy_c.py", line 13, in <module>
    import demographics_settings
ModuleNotFoundError: No module named 'demographics_settings'

comps info: https://comps.idmod.org/#explore/Simulations?filters=ExperimentId=f560c9ac-8e43-ef11-aa15-9440c9be2c51&mode=list&orderby=DateCreated+desc&count=10&offset=0&selectedId=4761c9ac-8e43-ef11-aa15-9440c9be2c51

krosenfeld-IDM commented 1 month ago

My file directory structure (particularly the placement of demographics-settings.py in the Assets\ folder) matched the successful experiments by @jonathanhhb : https://comps.idmod.org/#explore/Simulations?filters=ExperimentId=b12a9cb9-2741-ef11-aa15-9440c9be2c51&mode=list&orderby=DateCreated+desc&count=10&offset=0&resizer=502C502C0&selectedId=022b9cb9-2741-ef11-aa15-9440c9be2c51

krosenfeld-IDM commented 1 month ago

Using notes on running on COMPS from @jonathanhhb https://github.com/InstituteforDiseaseModeling/laser/wiki/Running-on-COMPS

krosenfeld-IDM commented 1 month ago

This error was due to issues with PYTHONPATH. Note that on COMPS there is an issue with soft link and the Assets folder. See this Teams thread