gemini3d / pygemini

Python interface for Gemini3D
Apache License 2.0
8 stars 4 forks source link

[Bug]: MSIS 2.1 info not found when running model.setup #25

Open mattzett opened 3 months ago

mattzett commented 3 months ago

What happened?

gemini3d.model.setup("./config.nml","~/simulations/ssd/NM_20240508/")
Traceback (most recent call last):

  Cell In[33], line 1
    gemini3d.model.setup("./config.nml","~/simulations/ssd/NM_20240508/")

  File ~/Projects/pygemini/src/gemini3d/model.py:150 in setup
    equilibrium(cfg)

  File ~/Projects/pygemini/src/gemini3d/model.py:166 in equilibrium
    dat = equilibrium_state(cfg, xg)

  File ~/Projects/pygemini/src/gemini3d/plasma.py:380 in equilibrium_state
    atmos = msis_setup(p, xg)

  File ~/Projects/pygemini/src/gemini3d/msis.py:75 in msis_setup
    raise EnvironmentError(f"MSIS 2.x requested but not present in {msis_exe}")

OSError: MSIS 2.x requested but not present in /Users/zettergm/Projects/gemini3d/build/msis/msis_setup

Relevant log output

No response

scivision commented 3 months ago

OK, This is a leftover issue from gemini3d/external retirement. I need to make this point to the Gemini3D build directory or install location or Figments install location, so that the code/runs are in harmony--using the same MSIS for PyGemini and Gemini3D/Figments.

Thanks!!

mattzett commented 3 months ago

I found a corollary to this issue, as well. I needed to manually move the msis.parm file into the build directory for gemini to run properly with msis 2.1.