HFB writing is very slow when read from dump.toml

オープン
#1,979 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
41
フォーク
12
平均マージ
2日 8時間
マージ済み PR(30日)
13

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Deltares/imod-python のほかの issue

Deltares/imod-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。