sapols / pyhc-environment-files

Files for a unified Python virtual environment containing all published PyHC packages
0 stars 0 forks source link

pyhc-environment-files

Repo with files trying to generate one virtual Python environment that can import every PyHC package.

Files:

  1. pyhc-requirements.txt: All the package versions that the PyHC packages require
  2. pyhc-packages-requirements.txt: The PyHC packages
  3. import-test.py: A script that runs import statements for the PyHC packages before printing a success message

Steps:

  1. pip install -r pyhc-requirements.txt
  2. pip install -r pyhc-packages-requirements.txt
  3. python3 import-test.py

Fixing ocbpy import (currently commented-out):

Problem:

It's failing on trying to get SpacePy to load the CDF C library

Solution:

Install CDF C library (see: https://spacepy.github.io/pycdf.html / https://spacepy.github.io/install_mac.html#install-mac-cdf)

Shawn's steps:

Fixing wmm2015 & wmm2020 imports (currently commented-out):

Problem:

"FileNotFoundError: CMake not available"

Solution:

Install CMake?

Shawn's steps:

Notes:

Ideas:

Similar to how Kamodo-CCMC has a few test lines to verify the installation:

from kamodo import Kamodo
k = Kamodo()  
import kamodo_ccmc.flythrough.model_wrapper as MW  
MW.Model_Variables('OpenGGCM_GM')

We should make a test file that has similar lines for ALL packages.