[FEATURE] - Add option to ``cleanup`` to write away grids where cleaning happened

Abierto
#1,976 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

The payload names no files; the starting point is the cleanup function in imod-python, whose docstring lists what it cleans. Read how it modifies grids in place, then settle the open questions in the issue: where output goes, whether the option is a function argument or global configuration, and what values to record. Done means maintainers have agreed on that design and a follow-up change is scoped, since the issue itself is not yet a code task.

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

Descripción

enhancement

Right now the cleanup is a magic function with a good docstring of what it is supposed to clean, but it cleans inplace and it doesn't do any keeping of values that have been changed. This makes it still opaque to users what is actually happening.

After a discussion with @emorway-usgs at the Delft Software Days, we discussed that it would be nice to have the option to let iMOD Python write away some grids/tables with the location of cells that have been changed.

Questions to refine:

  • Where should the data be stored? Or should this be user configurable?
  • Should there be a flag somewhere as an argument, or should it be a global configuration somewhere?
  • What values are we going to write away? Differences? An integer code with that indicates what has changed?
  • We should preserve package and variable names in some way
Lenguaje dominante
Python
Estrellas
41
Forks
12
Merge medio
2 d 8 h
PR fusionados (30 d)
13

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.