Skip to content

chore: replace in-house Serafin class with python-serafin dependency#69

Merged
tomsail merged 3 commits into
oceanmodeling:mainfrom
tomsail:python-serafin
Jun 1, 2026
Merged

chore: replace in-house Serafin class with python-serafin dependency#69
tomsail merged 3 commits into
oceanmodeling:mainfrom
tomsail:python-serafin

Conversation

@tomsail

@tomsail tomsail commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pyproject.toml Outdated
python = ">=3.11"
numpy = "*"
xarray = "*"
python-serafin = "*"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe i should pin it here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's better to pin it

@tomsail

tomsail commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@nicogodet let me know if this looks good

Comment thread xarray_selafin/xarray_backend.py Outdated
from xarray.backends import BackendArray, BackendEntrypoint
from serafin import Read
from serafin import Serafin
from serafin import serafin

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can export global constants if you want to avoid this import

Comment thread pyproject.toml Outdated
python = ">=3.11"
numpy = "*"
xarray = "*"
python-serafin = "*"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's better to pin it

Comment thread xarray_selafin/xarray_backend.py Outdated
import xarray as xr
from xarray.backends import BackendArray, BackendEntrypoint
from serafin import Read
from serafin import Serafin

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomsail tomsail merged commit 6e9e97d into oceanmodeling:main Jun 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants