Skip to content

Commit 8eb8249

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a7f3d39 commit 8eb8249

File tree

4 files changed

+171
-171
lines changed

4 files changed

+171
-171
lines changed

notebooks/batch_submission.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"metadata": {},
9494
"outputs": [],
9595
"source": [
96-
"#input args\n",
96+
"# input args\n",
9797
"repo = \"https://github.com/jbusecke/cmip6-leap-feedstock.git\"\n",
9898
"ref = \"beam-dataflow-testing\"\n",
9999
"f_name = \"config.json\"\n",
@@ -108,8 +108,8 @@
108108
"outputs": [],
109109
"source": [
110110
"def shorten_id(iid):\n",
111-
" iid_stripped = '-'.join(iid.split('.')[3:])\n",
112-
" assert len(iid_stripped)<66\n",
111+
" iid_stripped = \"-\".join(iid.split(\".\")[3:])\n",
112+
" assert len(iid_stripped) < 66\n",
113113
" return iid_stripped"
114114
]
115115
},
@@ -144,14 +144,14 @@
144144
],
145145
"source": [
146146
"# from the integration tests of pangeo-forge-runner\n",
147-
"#https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
147+
"# https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
148148
"\n",
149149
"import subprocess\n",
150150
"import time\n",
151151
"import xarray as xr\n",
152152
"\n",
153153
"iid = \"CMIP6.ScenarioMIP.EC-Earth-Consortium.EC-Earth3.ssp585.r107i1p1f1.day.psl.gr.v20200412\"\n",
154-
"jobname=shorten_id(iid)\n",
154+
"jobname = shorten_id(iid)\n",
155155
"target_store = f\"{target_bucket}/{iid}.zarr\"\n",
156156
"machine_type = \"e2-highmem-8\"\n",
157157
"cmd = [\n",
@@ -223,7 +223,6 @@
223223
"metadata": {},
224224
"outputs": [],
225225
"source": [
226-
"\n",
227226
"# note the start time, because certain errors on dataflow manifest as long hangs,\n",
228227
"# and if that's the case, we'll want to bail out of this test manually, rather than\n",
229228
"# wait for the the job to officially fail.\n",

0 commit comments

Comments
 (0)