Skip to content

Commit

Permalink
Tweak API docstrings/comments (#158)
Browse files Browse the repository at this point in the history
* tweak API comments

* few docstring enhancements

* more verbose gridtype -> arakawa_grid

* gridtype->arakawa_grid

* format black

* assert that orientation and arakawa_grid have allowed values

* break ValueError messages in multiple lines for clarity

* better error messages

* add remark about unit conversion

* units

---------

Co-authored-by: Navid C. Constantinou <[email protected]>
  • Loading branch information
aekiss and navidcy authored Apr 22, 2024
1 parent 986473e commit 264e4cd
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 96 deletions.
2 changes: 1 addition & 1 deletion demos/access_om2-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@
"expt.initial_condition(\n",
" tmp_dir + '/ic_unprocessed.nc', # directory where the unprocessed initial condition is stored, as defined earlier\n",
" ocean_varnames,\n",
" gridtype=\"B\"\n",
" arakawa_grid=\"B\"\n",
" )\n",
"\n",
"# Now iterate through our four boundaries \n",
Expand Down
2 changes: 1 addition & 1 deletion demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"expt.initial_condition(\n",
" glorys_path / \"ic_unprocessed.nc\", # directory where the unprocessed initial condition is stored, as defined earlier\n",
" ocean_varnames,\n",
" gridtype=\"A\"\n",
" arakawa_grid=\"A\"\n",
" )\n",
"\n",
"# Now iterate through our four boundaries \n",
Expand Down
Loading

0 comments on commit 264e4cd

Please sign in to comment.