Skip to content

Commit

Permalink
Merge pull request #13 from bonnland/fix-environment
Browse files Browse the repository at this point in the history
Avoid using python 3.12 for now
  • Loading branch information
bonnland authored Dec 21, 2023
2 parents 2b07b14 + 8a8dc18 commit 05ca480
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- nc-time-axis
- pip
- pytest
- python>=3.8
- python<=3.11
- tqdm
- watermark
- xarray>=2023.4.2
Expand Down
11 changes: 5 additions & 6 deletions notebooks/plot-diagnostics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@
"outputs": [],
"source": [
"# Produce a catalog content summary.\n",
"import pprint\n",
"\n",
"uniques = col.unique()\n",
"\n",
Expand Down Expand Up @@ -595,8 +594,8 @@
" data_slice = ds[data_var].sel(member_id=mem_id)\n",
" \n",
" if truncate_data:\n",
" # Limit time range to three years.\n",
" data_slice = truncateData(data_slice, 3)\n",
" # Limit time range to one year.\n",
" data_slice = truncateData(data_slice, 1)\n",
"\n",
" # Save slice in memory to prevent repeated disk loads\n",
" data_slice = data_slice.persist()\n",
Expand Down Expand Up @@ -633,7 +632,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -656,8 +655,8 @@
" data_slice = ds[data_var].sel(member_id=mem_id)\n",
" \n",
" if truncate_data:\n",
" # Limit time range to three years.\n",
" data_slice = truncateData(data_slice, 3)\n",
" # Limit time range to one year.\n",
" data_slice = truncateData(data_slice, 1)\n",
"\n",
" # Save slice in memory to prevent repeated disk loads\n",
" data_slice = data_slice.persist()\n",
Expand Down

0 comments on commit 05ca480

Please sign in to comment.