Closed espg closed 1 month ago
I tested the new environment.yml with 3 different python scripts (StationInfoEdit, PlotETM, and ScanArchive -ppp) on u111 and all work normally. I just tested with pyParallelGamit.py and I get this error message ImportError: cannot import name '_fit_context' from 'sklearn.base' (/home/kendrick.42/.conda/envs/pg/lib/python3.10/site-packages/sklearn/base.py) conda list shows my scikit-learn is version 1.1.3
@demiangomez this can probably be merged as is; items 4 and 5 are definitely separate PR's... items 2 and 3 could be added as part of those two PR's too...
@espg: can you please modify the readme also to add the instructions about installing and activating the environment?
mamba env create -f environment.yml conda activate pgamit
etc
I'll then merge this PR to main. Thanks
@demiangomez this should be ready to merge now.
I updated INSTALL.md
with instructions for installing the prerequisites-- I'll add more to that file after I setup and test the version releases in a separate PR.
Note that I removed the instructions for the proj
dependency, since we aren't including that python package for the transforms... I also don't see any C code that would need the library path. (I also think that fiona / shapely / cartopy pull that base library and manage it internally already)
This PR adds an
environment.yml
file for ParallelGamit. This file can be used by both pip for automating the install (i.e., future hosting of the ParallelGamit library on the pypi repository), and interactively by the developers and users to create reproducible production/development environments.Use of this file is generally achieved by mamba and/or conda. For unity, mamba is available as a module which also includes a conda install.
To setup a fresh environment for the first time
To update an existing environment after modifying
environment.yml
To do
Besides the first couple of items below, many of these will (likely) be separate pull requests in the future, but adding them here now for awareness:
environment.yml
will be shorter/clearer if we can remove the dependencies of dependencies (which are managed by the referring package itself at install time).conda-lock
file for explicit reproducibility of production environments if needed, which would be separate from thisenvironment.yml
install file.)pip install ParallelGamit
to install, rather than doing either a git clone or manual install from a downloaded archive. Also would enable control and separation between development and production versions; separate PR