Skip to content

reproduce_figure1d: bump numpy 1.26 → 2.0 (np.NaN fix is in)#163

Merged
bendichter merged 1 commit into
masterfrom
fix-reproduce1d-numpy2
May 13, 2026
Merged

reproduce_figure1d: bump numpy 1.26 → 2.0 (np.NaN fix is in)#163
bendichter merged 1 commit into
masterfrom
fix-reproduce1d-numpy2

Conversation

@bendichter
Copy link
Copy Markdown
Member

PR #159's regen pinned this notebook to numpy==1.26.4 because the PR-141-era input deps included numpy>=1.26,<2. That <2 cap was there because the notebook code used np.NaN (removed in numpy 2.0).

PR #156 already replaced np.NaN with np.nan — the notebook code has been numpy-2.x clean for a while. The <2 cap was just never refreshed in the input deps.

Fix

One-line: re-resolved the lock with numpy>=1.26 (no upper cap) against the Colab constraints set. Every other pin was already at Colab versions from #159, so the only line that changed is numpy:

numpy  1.26.4 → 2.0.2

Now matches Colab's preinstalled numpy==2.0.2, so the install cell is a no-op for numpy on a fresh Colab runtime — no kernel restart needed.

🤖 Generated with Claude Code

The lock generated by PR #159 pinned `numpy==1.26.4` because the
PR-141-era input deps included `numpy>=1.26,<2`. That cap was there
because the notebook used `np.NaN` (removed in numpy 2.0). PR #156
already replaced `np.NaN` with `np.nan`, so the cap is now stale
and the notebook code is numpy-2.x clean.

Re-resolved with `numpy>=1.26` (no upper cap) against the Colab
constraints set. The only line that changed is the numpy pin —
everything else was already at Colab versions:

  numpy   1.26.4 -> 2.0.2  (matches Colab — no restart on install)

Now the install on Colab is fully no-op for numpy/pandas/scipy/h5py/etc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@bendichter bendichter merged commit 69fc854 into master May 13, 2026
3 of 4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Preview for this PR has been removed (PR closed).

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.

1 participant