Skip to content

Commit

Permalink
use assert
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Oct 11, 2023
1 parent 1ce3b38 commit 7ceb79c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions notebooks/wp4/cmip6_sea_ice_diagnostics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"year_start = 1850\n",
"year_stop = 2100\n",
"assert year_start >= 1850 and year_stop <= 2100\n",
"assert not year_start % 10\n",
"\n",
"# Sea Ice Concentration Threshold\n",
"sic_threshold = 30 # %\n",
Expand Down
5 changes: 3 additions & 2 deletions notebooks/wp4/cmip6_sea_ice_evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"source": [
"# Time\n",
"year_start = 1970\n",
"year_stop = 2020\n",
"assert year_start >= 1970 and year_stop <= 2020\n",
"year_stop = 2019\n",
"assert year_start >= 1970 and year_stop <= 2019\n",
"assert not (year_start % 10 or (year_stop + 1) % 10)\n",
"\n",
"# Sea Ice Concentration Threshold\n",
"sic_threshold = 30 # %\n",
Expand Down

0 comments on commit 7ceb79c

Please sign in to comment.