NVIDIA / earth2studio

Open-source deep-learning framework for exploring, building and deploying AI weather/climate workflows.
https://nvidia.github.io/earth2studio/
Apache License 2.0
73 stars 23 forks source link

🐛[BUG]:Error when running Diagnostic Module: odule 'earth2studio.run' has no attribute 'diagnostic' #94

Closed awesomemfg closed 1 month ago

awesomemfg commented 1 month ago

Version

0.1.0

On which installation method(s) does this occur?

Pip

Describe the issue

image

Steps leading to the error:

  1. Using the Modulus Docker
  2. Installing Makani and Earth2Studio v0.1.0
  3. Downloading the example notebook file in https://nvidia.github.io/earth2studio/examples/02_diagnostic_workflow.html
  4. Trying to run the run.diagnostic
import earth2studio.run as run

nsteps = 8
io = run.diagnostic(
    ["2021-06-01"], nsteps, prognostic_model, diagnostic_model, data, io
)

print(io.root.tree())

Notes

  1. The Deterministic/Prognostic model works.
  2. No Diagnostic function in .local/lib/python3.10/site-packages/earth2studio/run.py

Do I have to install anything else to get the Diagnostic model running? Thank you

NickGeneva commented 1 month ago

Hi @awesomemfg

The diagnostic workflow was added in 0.2.0 which is being prepared for release. For now you will need to install from source. Give that a go and let me know if you're still having trouble.

Make sure the docs version you are referencing matches the install version of the package.

awesomemfg commented 1 month ago

Dear Nick,

Thanks for the clarification! I'll try installing from the source.

awesomemfg commented 1 month ago

Dear Nick, everything went smoothly when I installed from the source. Thank you!