Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Bug] - MetaSwapModel dump loses PrecipitationMapping.meteo

Abierto
#1,939 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
50/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug Deltares

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

Lenguaje dominante
Python
Estrellas
41
Forks
10
Merge medio
2 d 23 h
PR fusionados (30 d)
15

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Deltares/imod-python

Todos los issues de Deltares/imod-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.