Skip to content

Update dependencies - #104

Merged
erikmannerfelt merged 17 commits into
mainfrom
update-deps
Apr 13, 2026
Merged

Update dependencies#104
erikmannerfelt merged 17 commits into
mainfrom
update-deps

Conversation

@erikmannerfelt

@erikmannerfelt erikmannerfelt commented Apr 12, 2026

Copy link
Copy Markdown
Owner

These rust packages are updated:

  • pyo3 0.22 -> 0.28
  • numpy 0.22 -> 0.28
  • ndarray 0.15 -> 0.17
  • ndarray-stats 0.5 -> 0.7
  • netcdf 0.10 -> 0.12
  • enterpolation 0.2 -> 0.3
  • clap 4.3 -> 4.5
  • num_complex 0.2 -> 0.4
  • rayon 1.7 -> 1.10

This (especially pyo3 and ndarray) required quite substantial code changes.

The nix flake is also running a newer nixpkgs.

OpenCode added 8 commits April 12, 2026 19:26
- pyo3: 0.22 -> 0.28.3 (major API changes)
- numpy: 0.22 -> 0.28
- netcdf: 0.10.5 -> 0.12 (get_into argument order changed)
- ndarray-stats: 0.6 -> 0.7 (min/max methods removed)

Key migrations:
- PyObject -> Py<PyAny> type alias removed in pyo3 0.28
- into_py() -> into_pyobject() with Bound API
- from_slice_bound() -> from_slice() in numpy
- new_bound() -> new() for PyDict
- import_bound() -> import()
- netcdf get_into(data.view_mut(), ..) argument order swap
- ndarray 0.17 removes min()/max() on arrays, replaced with fold() patterns
- Replace value.downcast::<T>() with value.cast::<T>()
- Remove #[allow(deprecated)] attributes since they're no longer needed
enterpolation 0.2 -> 0.3:
- Replace Generator import with Signal trait
- Replace model.sample() with model.sample() using Signal trait
- Use Linear::builder() instead of enterpolation::linear::Linear::builder()

ndarray 0.16 -> 0.17:
- Required to avoid duplicate ndarray versions with enterpolation 0.3
- Updated fold() patterns to work with ndarray 0.17
@erikmannerfelt
erikmannerfelt merged commit bf4be8f into main Apr 13, 2026
12 checks passed
@erikmannerfelt
erikmannerfelt deleted the update-deps branch April 13, 2026 08:52
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