hainegroup / oceanspy

A Python package to facilitate ocean model data analysis and visualization.
https://oceanspy.readthedocs.io
MIT License
96 stars 32 forks source link

New ospy version #339

Closed Mikejmnez closed 1 year ago

Mikejmnez commented 1 year ago

I am releasing a new oceanspy version. I like the idea from other packages of releasing once a month. So that things don't build up.

With this new release, I think it is a good idea also to update the docs so that the notebooks reflect some of the minor and cosmetic changes that have occurred with the past releases. For example, in Tutorial.ipynb

import oceanspy as ospy

print(ospy.__version__)

the version displayed is still 0.2.0.

Also, Tutorial.ipynb, Kogur.ipynb and Particles.ipynb when making horizontal_sections , for example the following in Tutorial

od_cut = od.subsample.cutout(
    XRange=[-21, -13.5], YRange=[69.6, 71.4], ZRange=0, timeRange="2007-09-01"
)
od_cut = od_cut.set_name("cutout", overwrite=False)
# Alternatively, this syntax can be used:
# od_cut = ospy.subsample.cutout(od, ...)

# Plot the cutout domain
ax = od_cut.plot.horizontal_section(varName="Depth")
title = ax.set_title(od_cut.name)

yield warnings that became errors and have long since been fixed.

Will get a PR going soon