-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint: Utils module #350
Lint: Utils module #350
Conversation
shell: bash -l {0} | ||
run: | | ||
conda install numpy cython pip hdf5 libnetcdf cftime netcdf4 --strict-channel-priority | ||
pip install -e . --force-reinstall | ||
conda env create -f environment.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the MHKiT conda env from enviroment.yml file
conda activate mhkit-env | ||
conda install -y pytest coverage coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install development specific packages
shell: bash -l {0} | ||
run: | | ||
conda install numpy cython pip pytest hdf5 libnetcdf cftime netcdf4 coverage --strict-channel-priority | ||
pip install -e . --force-reinstall | ||
conda env create -f environment.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the MHKiT conda env from enviroment.yml file
shell: bash -l {0} | ||
run: | | ||
conda activate mhkit-env | ||
conda install -y pytest coverage coveralls nbval jupyter utm folium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra packages this time for the notebook examples
@@ -1,4 +1,4 @@ | |||
name: myenv | |||
name: mhkit-env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set env name to mhkit-env
- pecos>=0.3.0 | ||
- notebook | ||
- matplotlib>=3.9.1 | ||
- fatpack | ||
- nrel-rex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solve everything using conda (no pip)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the folium package updated and required a modification to the pacwave map
@akeeste this PR is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to install mhkit in this file at the end? It saves the installer a step? Not sure if you are not installing mhkit here on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be possible and I am not installing it on purpose because it would not make sense for testing.
If MHKiT was included in the .env
file then that would install the current conda release vs the changes in the repo we are trying to test.
My thoughts on how users would interact with the .env
file:
- Anyone simply wanting to use MHKiT I expect to use our release via
conda install mhkit
. - Anyone using the
.env
file I expect is doing development in the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me. I think our documentation could use an update on clearly delineating the use of the different install methods (environment.yml, conda install, editable) for different use cases (developer, user, user who wants notebooks too). I can take that on in the docs repo as I make other updates
- Anyone using the
.env
file I expect is doing development in the repo.
So the developer installation workflow would be:
- create conda environment with environment.yml
pip install -e .
for a editable MHKiT install
Also pip install -e . is being deprecated and we'll need a new method soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good @ssolson. A few clarifying questions throughout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me. I think our documentation could use an update on clearly delineating the use of the different install methods (environment.yml, conda install, editable) for different use cases (developer, user, user who wants notebooks too). I can take that on in the docs repo as I make other updates
- Anyone using the
.env
file I expect is doing development in the repo.
So the developer installation workflow would be:
- create conda environment with environment.yml
pip install -e .
for a editable MHKiT install
Also pip install -e . is being deprecated and we'll need a new method soon
@akeeste I added the docstring back that I mistakenly deleted. Assuming the tests pass is this ready to merge? |
Improve PyLint Compliance and Update GitHub Actions Environment