-
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.
Refactor fv3 runtime modules and image construction (#185)
As part of the effort to adjust the runfile for the one_step jobs, I realized that I could share the following functionality: 1. the docker image built by the prognostic run workflow 1. the `online_modules` directory used there. After talking to @frodre and @oliverwm1, I decided to pull these routines into the top-level fv3net workspace. This involved the following changes: - build/version docker images in top level - Start versioning fv3net for the purposes of building docker images - Move docker image construction for a `prognostic_run` and `fv3net` images to the `/docker` folder. - Delete the old contents of `/docker` which seem obsolete (last touched Oct 2019). - add rules `make push_images` and `make build_images` - Update the README.md - updated yamls in workflow directories - move `workflows/prognostic_c48_run/online_modules` into `fv3net/runtime`. This module will now be available to other workflows. Other changes: * Refactor online_modules to fv3net * Create us.gcr.io/vcm-ml/prognostic_run:v0.1.0 * Refactor us.gcr.io/vcm-ml/fv3net image build code * Add __version__ to fv3net init * update prognostic_run_diags configuration * update readme * pin pandas version to 1.0.1 (this is incompatible with xarray 0.15)
- Loading branch information
Showing
22 changed files
with
88 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
======= | ||
History | ||
======= | ||
|
||
Current | ||
------- | ||
|
||
0.1.0 (2020-03-20) | ||
------------------ | ||
|
||
* First release of fv3net |
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 | ||
|
Submodule fv3config
updated
from e6dc95 to 6bde7b
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
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.