HFB writing is very slow when read from dump.toml

Abierto
#1,979 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start by running the attached test_hfb_rewriting.py example with imod 1.1.0 and compare HFB write times for a freshly created model and one reloaded with Modflow6Simulation.from_file(). Trace how the HFB package is loaded from dump.toml and written by simulation.write(); the issue is resolved when writing the reloaded model no longer slows progressively with larger models.

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

Descripción

Dear developers,

I am creating a model including a hfb-package > saving that using simulation.dump() >opening that dump later via the imod.mf6.Modflow6Simulation.from_file() function > changing a package > rewriting the model to modflow files using simulation.write().

In this writing (when loaded from dump) statements, the writing is very slow on the hfb package. There is no issue when writing/dumping it directly when creating the model, only after loading from dump toml. The issue seems to get progressively worse for larger models. I tried computing the reloaded hfb before writing, but that did not seem to change it.

Attached is a small working example.

test_hfb_rewriting.py

Running on imod 1.1.0.

Teun

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.