Improve indexing for `_MeshIndexSet`

Aperta
#7,234 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start by locating _MeshIndexSet.__init__, _DimensionalMetadata, and the indexing entry points for MeshCoord and Cube. Compare their accepted ArrayLike and scalar inputs with other Coord/Cube indexing, then add the requested test updates; done means the behaviors are consistent and the tests pass.

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

Descrizione

  • indices parameter for _MeshIndexSet.__init__ needs to be made consistent with the rest of _DimensionalMetadata in terms of what ArrayLike variations are accepted.
    • Including testing updates
  • The indexing values accepted when indexing a MeshCoord (or Cube including MeshCoords) should be consistent with other Coord/Cube indexing. I believe that passing in scalars is currently more challenging than needed, for example
    • Including testing updates
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.