Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent a7f3d39 commit 8eb8249
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 171 deletions.
11 changes: 5 additions & 6 deletions notebooks/batch_submission.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"#input args\n",
"# input args\n",
"repo = \"https://github.com/jbusecke/cmip6-leap-feedstock.git\"\n",
"ref = \"beam-dataflow-testing\"\n",
"f_name = \"config.json\"\n",
Expand All @@ -108,8 +108,8 @@
"outputs": [],
"source": [
"def shorten_id(iid):\n",
" iid_stripped = '-'.join(iid.split('.')[3:])\n",
" assert len(iid_stripped)<66\n",
" iid_stripped = \"-\".join(iid.split(\".\")[3:])\n",
" assert len(iid_stripped) < 66\n",
" return iid_stripped"
]
},
Expand Down Expand Up @@ -144,14 +144,14 @@
],
"source": [
"# from the integration tests of pangeo-forge-runner\n",
"#https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
"# https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
"\n",
"import subprocess\n",
"import time\n",
"import xarray as xr\n",
"\n",
"iid = \"CMIP6.ScenarioMIP.EC-Earth-Consortium.EC-Earth3.ssp585.r107i1p1f1.day.psl.gr.v20200412\"\n",
"jobname=shorten_id(iid)\n",
"jobname = shorten_id(iid)\n",
"target_store = f\"{target_bucket}/{iid}.zarr\"\n",
"machine_type = \"e2-highmem-8\"\n",
"cmd = [\n",
Expand Down Expand Up @@ -223,7 +223,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"# note the start time, because certain errors on dataflow manifest as long hangs,\n",
"# and if that's the case, we'll want to bail out of this test manually, rather than\n",
"# wait for the the job to officially fail.\n",
Expand Down
Loading

0 comments on commit 8eb8249

Please sign in to comment.