NREL / SSRS

A stochastic agent-based model for predicting raptor movements during updraft-subsidized directional flights
https://www.osti.gov/doecode/biblio/63192
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Fix dependencies for HRRR #8

Closed ewquon closed 2 years ago

ewquon commented 2 years ago

SSRS Simulator cannot be initialized with from .hrrr import HRRR lines in code. The error may be reproduced with the following single line:

from ssrs.hrrr.hrrr import HRRR

which results in

RuntimeError: Cannot find the ecCodes library

Diving deeper, this can actually be traced back to:

import gribapi

which is called by the eccodes library.

ewquon commented 2 years ago

Working off of alt_study branch, which has dev merged into it.

rthedin commented 2 years ago

Using the alt_study branch, I'm starting with a new environment from scratch on Eagle and following the readme file instructions. I had to manually install additional packages needed by Herbie that do not get installed by default given Herbie dependencies. The packages are soupsieve (which in turn needs bs4) and cartopy.

ewquon commented 2 years ago

Thanks, Regis. I have an updated environment.yaml, which I'll commit with my PR to add a regression test. https://github.com/ewquon/SSRS/blob/93d7cc3448c0e5f1f6f05484e6c49d45ac1c359f/environment.yml

rimplesandhu commented 2 years ago

Did not see this in your push from yesterday. environment.yml is still the old one. @ewquon

ewquon commented 2 years ago

@rimplesandhu I had updated the environment.yaml as part of another code branch I've been developing. If you need it urgently, I can cherry pick that commit and create a new PR in the interim.

rimplesandhu commented 2 years ago

That's fine. I got it working on Eagle but had to install many packages manually due to Herbie dependencies.

ewquon commented 2 years ago

Closing this unless others still have issues.