Numpy 2.5 deprecations

Aperta
#7,379 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
numpy, python
Ambito
backend

Direzione di ricerca

Start with the NumPy deprecation warnings listed in the CI log: iris/symbols.py, iris/fileformats/pp.py, and iris/tests/unit/concatenate/test_concatenate.py. Read the surrounding code and identify the operations that set array shape or dtype, then run the affected tests. Done when those warnings are resolved and the tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This will break probably in v2.7, about Nov'27.

Relevant occurrences in recent ci-tests GHA log:

$ grep "deprecated in NumPy" .../citests_log_example.txt 
2026-10-29T15:03:17.7070378Z   /home/runner/work/iris/iris/lib/iris/symbols.py:52: DeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7109140Z   /home/runner/work/iris/iris/lib/iris/fileformats/pp.py:717: DeprecationWarning: Setting the dtype on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7123939Z   /home/runner/work/iris/iris/lib/iris/fileformats/pp.py:803: DeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7254343Z   /home/runner/work/iris/iris/lib/iris/fileformats/pp.py:1199: DeprecationWarning: Setting the dtype on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7264866Z   /home/runner/work/iris/iris/lib/iris/fileformats/pp.py:1138: DeprecationWarning: Setting the dtype on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7279057Z   /home/runner/work/iris/iris/lib/iris/fileformats/pp.py:1254: DeprecationWarning: Setting the dtype on a NumPy array has been deprecated in NumPy 2.5.
2026-10-29T15:03:17.7481117Z   /home/runner/work/iris/iris/lib/iris/tests/unit/concatenate/test_concatenate.py:226: DeprecationWarning: Setting the dtype on a NumPy array has been deprecated in NumPy 2.5.
$ 
Lingua principale
Python
Stelle
730
Fork
323
Merge medio
3g 21h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SciTools/iris

Tutte le issue di SciTools/iris

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.