Skip to content

deps: get the right serialbox dependency (and make it optional)#121

Open
romanc wants to merge 1 commit intoNOAA-GFDL:developfrom
romanc:romanc/serialbox-dependency
Open

deps: get the right serialbox dependency (and make it optional)#121
romanc wants to merge 1 commit intoNOAA-GFDL:developfrom
romanc:romanc/serialbox-dependency

Conversation

@romanc
Copy link
Collaborator

@romanc romanc commented Mar 3, 2026

Description

Serialbox is a serialization library that is used to build a validation framework against reference runs. At NASA/NOAA, we use this branch, which includes a couple of custom commands.

The library is not strictly needed to run tests. I thus removed it from the tests extra. It is used to serialize data and can thus be helpful to be installed with pyFV3. I thus left it as an optional dependency.

The currently configured serialbox package is about generating and distributing serial numbers. The fact that this misconfiguration never bothered anyone is surprising and hints at the fact that the serialbox serialization library is probably unused as part of the pyFV3 installation.

/cc @FlorianDeconinck as discussed

How Has This Been Tested?

Self-review of code plus passing existing tests.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas: N/A
  • I have made corresponding changes to the documentation: N/A
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included: N/A
  • Targeted model if this changed was triggered by a model need/shortcoming: N/A

Serialbox is a serialization library that is used to build a validation
framework against reference runs.

The library is not strictly needed to run tests. I thus removed it from
the tests extra. It is used to serialize data and can thus be helpful to
be installed with pyFV3. I thus left it as an optional dependency.

The currently configured "serialbox" package is about generating
and distributing serial numbers. The fact that this misconfiguration
never bothered anyone is surprising and hints at the fact that the
serialbox serialization library is probably unused as part of the pyFV3
installation.
@romanc romanc requested review from fmalatino and jjuyeonkim March 3, 2026 08:07
Copy link
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

👍

"pyfv3[test]"
]
ndsl = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@2026.01.00"]
serialbox = ["serialbox @ git+https://github.com/FlorianDeconinck/serialbox.git@feature/data_ijkbuff"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, this won't work because the python interface of serialbox is in a subfolder of the repo.

Suggested change
serialbox = ["serialbox @ git+https://github.com/FlorianDeconinck/serialbox.git@feature/data_ijkbuff"]
serialbox = ["serialbox @ git+https://github.com/FlorianDeconinck/serialbox.git@feature/data_ijkbuff#subdirectory=src/serialbox-python"]

Copy link
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

Pulling back here - we should not have serialbox as a dependency at all.

@oelbert : the only use of the serialbox python package is in acoustics.py, a one-file example on how to use the acoustics time step that uses some long lost serialbox data: can we burn that file?

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.

3 participants