-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/fv3net-online-modules' into feature/versioned-…
…fv3net
- Loading branch information
Showing
20 changed files
with
76 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM us.gcr.io/vcm-ml/fv3gfs-python:v0.2.1 | ||
|
||
|
||
COPY docker/prognostic_run/requirements.txt /tmp/requirements.txt | ||
RUN pip3 install -r /tmp/requirements.txt | ||
COPY fv3net-0.1.0-py3-none-any.whl /wheels/fv3net-0.1.0-py3-none-any.whl | ||
COPY vcm-0.1.0-py3-none-any.whl /wheels/vcm-0.1.0-py3-none-any.whl | ||
RUN pip3 install --no-deps /wheels/fv3net-0.1.0-py3-none-any.whl && pip3 install /wheels/vcm-0.1.0-py3-none-any.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
scikit-learn==0.22.1 | ||
dask | ||
joblib | ||
zarr | ||
scikit-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ dependencies: | |
- h5netcdf | ||
- h5py>=2.10 | ||
- hypothesis | ||
- pandas=1.0.1 | ||
- intake | ||
- intake-xarray | ||
- metpy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import sklearn_interface as sklearn | ||
from .state_io import init_writers, append_to_writers, CF_TO_RESTART_MAP | ||
from .config import get_runfile_config, get_namelist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
IMAGE=test-image | ||
IMAGE = us.gcr.io/vcm-ml/prognostic_run:v0.1.0 | ||
KEY_ARGS= -v $(GOOGLE_APPLICATION_CREDENTIALS):/key.json \ | ||
-e GOOGLE_APPLICATION_CREDENTIALS=/key.json | ||
LOCAL_DIR_ARGS = -w /code -v $(shell pwd):/code | ||
|
@@ -7,26 +7,10 @@ RUN_ARGS = --rm $(KEY_ARGS) $(LOCAL_DIR_ARGS) $(IMAGE) | |
RUN_INTERACTIVE = docker run -ti $(RUN_ARGS) | ||
RUN ?= docker run $(RUN_ARGS) | ||
SKLEARN_MODEL = gs://vcm-ml-data/test-annak/ml-pipeline-output/2020-01-17_rf_40d_run.pkl | ||
FV3CONFIG = fv3config.yml | ||
FV3NET_VERSION ?=2020-01-23-prognostic-rf | ||
FV3CONFIG = gs://vcm-ml-data/end-to-end-experiments/2020-02-26-physics-off/annak-prognostic-physics-off-1773255e/prognostic_run_prognostic_yaml_adjust_prognostic_config.yml_ic_timestep_20160801.001500_docker_image_prognostic-run-orchestration/job_config/fv3config.yml | ||
|
||
all: sklearn_run | ||
|
||
fv3net-0.1.0-py3-none-any.whl: | ||
pip wheel --no-deps git+ssh://[email protected]/VulcanClimateModeling/fv3net.git@$(FV3NET_VERSION) | ||
|
||
build: fv3net-0.1.0-py3-none-any.whl | ||
docker build . -t $(IMAGE) | ||
|
||
fv3net-local: | ||
pip wheel --no-deps ../../. | ||
|
||
vcm-local: | ||
pip wheel --no-deps ../../external/vcm | ||
|
||
build_local: fv3net-local vcm-local | ||
docker build . -t $(IMAGE) | ||
|
||
dev: | ||
$(RUN_INTERACTIVE) bash | ||
|
||
|
@@ -36,9 +20,14 @@ test_run_sklearn: state.pkl | |
state.pkl: | ||
fv3run --dockerimage test-image --runfile save_state_runfile.py $(FV3CONFIG) save_state/ | ||
cp save_state/state.pkl . | ||
|
||
sklearn_run_local: #rundir | ||
fv3run --dockerimage $(IMAGE) --runfile sklearn_runfile.py $(FV3CONFIG) rundir | ||
|
||
sklearn_run: #rundir | ||
fv3run --dockerimage us.gcr.io/vcm-ml/prognostic-run-orchestration --runfile sklearn_runfile.py $(FV3CONFIG) ../../scratch/rundir | ||
|
||
clean: | ||
rm -rf net_precip net_heating/ PW | ||
|
||
.PHONY: fv3net vcm build dev sklearn_run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.