Skip to content

Drop h5py as a direct dependency - #121

Merged
cpmpercussion merged 1 commit into
mainfrom
remove-h5py-dependency
Sep 27, 2026
Merged

cpmpercussion merged 1 commit into
mainfrom
remove-h5py-dependency

Conversation

@cpmpercussion

Copy link
Copy Markdown
Owner

IMPSY never imports h5py. .h5 weight files are saved and loaded through Keras (save_weights/load_weights), and Keras requires h5py itself, as does TensorFlow 2.21 (h5py>=3.11.0,<3.15.0). The direct dependency was added as ~3.10.0 in May 2024, probably to pin a version for TensorFlow at the time.

Installs don't change: h5py 3.14.0 still comes in through Keras and TensorFlow. The lock file only changes its content hash. All 229 tests pass locally.

Part of #119.

🤖 Generated with Claude Code

https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv

IMPSY never imports h5py. .h5 weights are read and written through
Keras, which requires h5py itself, as does TensorFlow (h5py<3.15). The
lock file is unchanged apart from its content hash.

Refs #119

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv
Copilot AI lite review requested due to automatic review settings September 27, 2026 01:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Removes the redundant direct h5py dependency while retaining it transitively through TensorFlow/Keras.

Changes:

  • Removes h5py from pyproject.toml.
  • Refreshes the Poetry lockfile content hash.
File Summary
pyproject.toml Removes the direct dependency.
poetry.lock Updates dependency metadata; retains transitive h5py.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cpmpercussion
cpmpercussion merged commit c3849e2 into main Sep 27, 2026
11 checks passed
@cpmpercussion
cpmpercussion deleted the remove-h5py-dependency branch September 27, 2026 01:15
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