Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

use `"positive"` attribute in `differentiate` and `integrate`

Aperta
#190 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start at the differentiate and integrate accessor entry points and trace how the coordinate is passed to xarray. Review how the positive attribute is represented, then determine the opt-in argument name, sign-handling behavior, and error case for missing metadata. Done means both operations consistently account for positive when enabled and reject enabled use without that attribute.

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

Descrizione

The 'positive': 'up' or 'positive': 'down' attribute should be taken into account when calculating derivatives.

I think we could add .cf.differentiate(..., fix_sign=True) (default False) as an opt-in to this approach. In practice, I think we just fix the sign of the coordinate variable before passing it on to xarray.

Thoughts on adding this?

I think we could come up with a better kwarg name.

I think it should raise an error if fix_sign is True and "positive" not in attrs

Lingua principale
Python
Stelle
181
Fork
49
Merge medio
3h 41m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 xarray-contrib/cf-xarray

Tutte le issue di xarray-contrib/cf-xarray

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.