Skip to content
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

Develop one steps #236

Merged
merged 15 commits into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ tox.ini
vcm-ml-data
dataflow/*/env
external/vcm/venv
Dockerfile
Dockerfile
outdir/
13 changes: 11 additions & 2 deletions .environment-scripts/install_local_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ CONDA_ENV=$1

source activate $CONDA_ENV

local_packages_to_install=(. external/fv3config external/vcm external/vcm/external/mappm)
local_packages_to_install=(. external/fv3config external/vcm external/vcm/external/mappm )
for package in ${local_packages_to_install[@]}
do
pip install --no-deps -e $package
done
done

poetry_packages=( external/runtime )
for package in ${poetry_packages[@]}
do
(
cd $package
conda develop .
)
done
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ latest
* Add `nudge_to_obs` module to `kube_jobs`, which helps with the configuration of FV3GFS model runs that are nudged towards GFS analysis
* Add public function: vcm.convert_timestamps
* Add pipeline to load C384 restart data into a zarr
* One step run workflow outputs a single zarr as output (instead of individual directories for each timestep), downstream workflows are adjusted to use this data format
* Train data pipeline and offline diagnostics workflow read in variable names information from yaml provided to python
* Force load data in diagnostics workflow before compute and plot
* Improved logging when running FV3 model


0.1.1 (2020-03-25)
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#################################################################################
# GLOBALS #
#################################################################################

VERSION ?= v0.1.1
VERSION ?= $(shell git rev-parse HEAD)
ENVIRONMENT_SCRIPTS = .environment-scripts
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUCKET = [OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')
Expand Down Expand Up @@ -63,6 +62,9 @@ run_integration_tests:
./tests/end_to_end_integration/.test_run_scripts/prepare_integration_test_configs.sh $(VERSION)
./tests/end_to_end_integration/.test_run_scripts/run_integration_with_wait.sh

test:
pytest external/* tests

## Make Dataset
.PHONY: data update_submodules create_environment overwrite_baseline_images
data:
Expand Down
4 changes: 2 additions & 2 deletions docker/prognostic_run/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM us.gcr.io/vcm-ml/fv3gfs-python:v0.3.1


COPY docker/prognostic_run/requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
RUN pip3 install wheel && pip3 install -r /tmp/requirements.txt

# cache external package installation
COPY external/fv3config /fv3net/external/fv3config
Expand All @@ -11,3 +10,4 @@ RUN pip3 install -e /fv3net/external/vcm -e /fv3net/external/fv3config

COPY . /fv3net
RUN pip3 install --no-deps -e /fv3net
ENV PYTHONPATH=/fv3net/external/runtime:${PYTHONPATH}
107 changes: 101 additions & 6 deletions docker/prognostic_run/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,102 @@
alabaster==0.7.12
appdirs==1.4.3
asciitree==0.3.3
atomicwrites==1.1.5
attrs==18.2.0
Babel==2.8.0
backoff==1.10.0
cachetools==4.0.0
certifi==2019.11.28
cftime==1.1.0
chardet==3.0.4
click==7.1.1
cycler==0.10.0
Cython==0.29.10
dask==2.10.1
decorator==4.4.2
docrep==0.2.7
docutils==0.16
entrypoints==0.3
f90nml==1.1.2
fasteners==0.15
fsspec==0.6.0
future==0.18.2
gcsfs==0.4.0
gitdb==4.0.2
GitPython==3.1.0
google-api-core==1.16.0
google-auth==1.11.2
google-auth-oauthlib==0.4.1
google-cloud-core==1.3.0
google-cloud-storage==1.23.0
google-resumable-media==0.5.0
googleapis-common-protos==1.51.0
h5netcdf==0.8.0
h5py==2.10.0
idna==2.8
imageio==2.8.0
imagesize==1.2.0
importlib-metadata==0.19
intake==0.5.5
ipython-genutils==0.2.0
Jinja2==2.10.3
joblib==0.14.1
kiwisolver==1.2.0
kubernetes==10.0.1
llvmlite==0.31.0
MarkupSafe==1.1.1
matplotlib==3.2.1
MetPy==0.12.0
monotonic==1.5
more-itertools==4.2.0
mpi4py==3.0.2
msgpack==1.0.0
netCDF4==1.4.2
networkx==2.4
numba==0.48.0
numcodecs==0.6.4
numpy==1.16.2
oauthlib==3.1.0
packaging==20.1
pandas==1.0.1
Pillow==7.1.1
Pint==0.11
pluggy==0.12.0
pooch==1.0.0
protobuf==3.11.3
py==1.8.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.5.2
pyparsing==2.4.6
pytest==5.2.2
python-dateutil==2.8.1
pytz==2019.3
PyWavelets==1.1.1
PyYAML==5.1.2
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
scikit-image==0.16.2
scikit-learn==0.22.1
dask
joblib
zarr
scikit-image
google-cloud-logging
backoff
scipy==1.4.1
six==1.12.0
smmap==3.0.1
snowballstemmer==2.0.0
Sphinx==2.2.0
sphinx-rtd-theme==0.4.3
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
toolz==0.10.0
traitlets==4.3.3
urllib3==1.25.8
wcwidth==0.1.8
websocket-client==0.57.0
xarray==0.13.0
xgcm==0.3.0
zarr==2.3.2
zipp==0.5.2
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ dependencies:
- bokeh=1.4
- backoff
- pip:
- poetry
- gsutil
- nc-time-axis>=1.2.0
- gitpython
- bump2version>=0.5.11
- yq
2 changes: 1 addition & 1 deletion external/fv3config
Empty file added external/runtime/README.rst
Empty file.
Loading