-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/one step save baseline #193
Changes from 66 commits
8ca8819
5909c73
cee28fd
305629f
ff9f938
b31a099
8f9cb3c
31930d9
f994766
871be05
db16a39
47d69e3
cfe4523
1b120ad
61c2036
46b4f0f
f6827c0
7eb6314
2981824
3f6edda
a735a2e
8a7a49c
ff62ff3
a152ed7
e397c13
71f7300
74d5c9b
27cb13d
b8a9c04
0cf8cff
8f443f7
fdac3bc
c6ad40b
b7de07f
32ff298
c8bff73
cad7e08
49334f5
d0c77d5
cfed20f
ae2e383
97e4627
34426c0
fba67f5
4da489b
dc1f502
669df7e
5a2d1a1
6f698bc
56fe153
e57c543
b85d0e9
92f2353
1bc45b5
b72a670
08a7dc5
f2a4f0a
7a0d7b0
09cc500
669bc68
513562d
cf0e5ff
f685dc9
597aab2
732128f
e524d4e
558011d
9f41b4b
a962ef9
0e537bb
3805291
9873e54
eb11110
3dd8cf0
c144a5b
2c5f2fe
643757f
d40b044
4a953da
92df973
d4fa24f
71cc1ec
5a6fa36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ tox.ini | |
vcm-ml-data | ||
dataflow/*/env | ||
external/vcm/venv | ||
Dockerfile | ||
Dockerfile | ||
outdir/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ joblib | |
zarr | ||
scikit-image | ||
google-cloud-logging | ||
gitpython | ||
backoff |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,6 @@ dependencies: | |
- pip: | ||
- gsutil | ||
- nc-time-axis>=1.2.0 | ||
- gitpython | ||
- bump2version>=0.5.11 | ||
- yq |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +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 | ||
from .config import get_namelist, get_config |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
workdir=$(pwd) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's up with having this script and the empty There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These were for prototyping only, so I deleted these and pasted them into the readme as a quick example. |
||
src=gs://vcm-ml-data/orchestration-testing/test-andrep/coarsen_restarts_source-resolution_384_target-resolution_48/ | ||
output=gs://vcm-ml-data/testing-noah/one-step | ||
image=us.gcr.io/vcm-ml/prognostic_run:v0.1.0-a1 | ||
yaml=$PWD/deep-conv-off.yml | ||
|
||
gsutil -m rm -r $output > /dev/null | ||
( | ||
cd ../../ | ||
python $workdir/orchestrate_submit_jobs.py \ | ||
$src $yaml $image $output -o \ | ||
--config-version v0.3 | ||
) | ||
|
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.
Is
/tmp/null
supposed to be the output url in this line?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.
Yes. this job does not need to upload the run directory any longer since all the useful info is in the big zarr. Setting
outdir=/tmp/null
was the easiest way to do this.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.
I added a comment to make this clear.
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.
When I run a test (writing to my own test dir), it complains that the output tmp/null needs to be a remote path, any idea I doing something wrong? Running the test script seems to work for others.
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.
I ran into this too and in my case it was because I hadn't pulled and installed the latest
fv3config
that includes Noah's changes. Once I did that ti worked.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.
Oh I see, thanks
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.
another good reason to have run these kind of tests in CI.