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

[Bug] - MetaSwapModel dump loses PrecipitationMapping.meteo

Aperta
#1,939 1 commento 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
Mezza giornata
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start by reproducing the loss: build a MetaSwapModel, call its dump() method, reload it with from_file(), then inspect the reloaded PrecipitationMapping and the prec_mapping.nc file it wrote, which the report says is empty. Compare how the meteo reference is written and read back in the serialization path. Done means the reloaded PrecipitationMapping has its meteo attribute and the dump-and-reload round trip works without an AttributeError.

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

Descrizione

bug

When dumping and reloading a MetaSwapModel, the resulting PrecipitationMapping object has no meteo attribute:

AttributeError: 'PrecipitationMapping' object has no attribute 'meteo'

This occurs with MetaSwapModel.dump() followed by MetaSwapModel.from_file(). The original model works correctly before dumping.

The prec_mapping.nc file is empty, so the meteorological grid reference appears not to be preserved during serialization. The reloaded model should restore the meteo attribut

Lingua principale
Python
Stelle
41
Fork
11
Merge medio
2g 23h
PR unite (30g)
13

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 Deltares/imod-python

Tutte le issue di Deltares/imod-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.