Skip to content

Commit

Permalink
Merge pull request #331 from NCAR/dev
Browse files Browse the repository at this point in the history
Dev merge -
  • Loading branch information
allibco authored Sep 4, 2024
2 parents d4c25e9 + 7691bf9 commit c716b9e
Show file tree
Hide file tree
Showing 35 changed files with 2,516 additions and 1,290 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.7', '3.8', '3.9']
# python-version: ['3.7', '3.8', '3.9']
python-version: ['3.9']
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
Expand All @@ -42,7 +43,7 @@ jobs:

- name: Install ldcpy
run: |
python -m pip install -e .
conda install ldcpy
conda list
- name: Run Tests
Expand All @@ -66,6 +67,7 @@ jobs:
defaults:
run:
shell: bash -l {0}
continue-on-error: true # Allow this job to fail without failing the workflow
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
Expand All @@ -84,7 +86,7 @@ jobs:

- name: Install ldcpy
run: |
python -m pip install -e .
conda install ldcpy
conda list
- name: Run Tests
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ repos:
hooks:
- id: flake8

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
# - repo: https://github.com/PyCQA/isort
# rev: 5.10.1
# hooks:
# - id: isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.3
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. image:: https://img.shields.io/github/workflow/status/NCAR/ldcpy/CI?logo=github&style=for-the-badge
.. image:: https://img.shields.io/github/actions/workflow/status/NCAR/ldcpy/ci.yaml?branch=dev&style=for-the-badge&logo=github&label=Build
:target: https://github.com/NCAR/ldcpy/actions
:alt: GitHub Workflow CI Status

.. image:: https://img.shields.io/github/workflow/status/NCAR/ldcpy/code-style?label=Code%20Style&style=for-the-badge
.. image:: https://img.shields.io/github/actions/workflow/status/NCAR/ldcpy/linting.yaml?branch=dev&style=for-the-badge&logo=github&label=Code Style
:target: https://github.com/NCAR/ldcpy/actions
:alt: GitHub Workflow Code Style Status

Expand Down
5 changes: 3 additions & 2 deletions binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: myenv
channels:
- conda-forge
dependencies:
- python=*=*cp*
# - python=*=*cp*
- python=3.9
- cartopy
- cf_xarray
- cmocean
Expand All @@ -20,7 +21,7 @@ dependencies:
- netcdf4
- nodejs
- pip
- python=3.8
- python=3.9
- s3fs
- scikit-image
- xarray
Expand Down
8 changes: 6 additions & 2 deletions ci/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: ldcpy_dev
channels:
- conda-forge
dependencies:
- python=*=*cp*
# - python=*=*cp*
- python=3.9
- cartopy
- cmocean
- codecov
Expand All @@ -15,7 +16,7 @@ dependencies:
- matplotlib
- matplotlib-base
- netcdf4
- numpy
- numpy<1.23
- opencv
- pandas
- pip
Expand All @@ -34,3 +35,6 @@ dependencies:
- ipython
- pooch
- statsmodels
- pip:
- tensorflow[and-cuda]=2.15
- keras
3 changes: 2 additions & 1 deletion ci/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: ldcpy
channels:
- conda-forge
dependencies:
- python=*=*cp*
# - python=*=*cp*
- python=3.9
- cartopy
- cmocean
- codecov
Expand Down
21 changes: 17 additions & 4 deletions ci/upstream-dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,35 @@ name: ldcpy
channels:
- conda-forge
dependencies:
- python=*=*cp*
# - python=*=*cp*
- python=3.9
- cartopy
- cmocean
- codecov
- cython
- dask
- graphviz
- intake-esm
- matplotlib-base=3.3.3
- notebook=6.4.12
- jupyter_contrib_nbextensions
- jupyterlab
- matplotlib
- matplotlib-base
- netcdf4
- numpy
- opencv
- pandas
- pip
- pre-commit
- pytest
- pytest-cov
- pytest-xdist
- scikit-image
- scipy
- setuptools
- zfpy
- pandas
- cf_xarray
- astropy
- jupyterlab
- ipython
- pooch
- statsmodels
Expand Down
Binary file added data/cam-fv/orig/PRECT.100days.nc
Binary file not shown.
Binary file added data/cam-fv/orig/TS.100days.nc
Binary file not shown.
Binary file added data/cam-fv/orig/TS2.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1.0/PRECT.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1.0/TS.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1.0/TS2.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-1/PRECT.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-1/TS.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-1/TS2.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-3/PRECT.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-3/TS.100days.nc
Binary file not shown.
Binary file added data/cam-fv/zfp_1e-3/TS2.100days.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ldcpy-docs
channels:
- conda-forge
dependencies:
- python=3.8
- python=3.9
- numpy
- cartopy
- xarray
Expand Down
26 changes: 26 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pip
cmocean
cartopy
dask[complete]
matplotlib
netcdf4
numpy
scikit-image
scipy
xarray
xrft
cf_xarray
cartopy
nodejs
pandas
astropy
ipython
pooch
statsmodels
sphinx
sphinx_rtd_theme
nbsphinx
sphinx-reload
pillow
ipython
ldcpy
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# -- Project information -----------------------------------------------------

project = 'ldcpy'
copyright = u'2020, University Corporation for Atmospheric Research'
copyright = u'2024, University Corporation for Atmospheric Research'
author = u'Alex Pinard, Allison Baker, Anderson Banihirwe, Dorit Hammerling'


Expand Down
Loading

0 comments on commit c716b9e

Please sign in to comment.