Deltares / Ribasim

Water resources modeling
https://deltares.github.io/Ribasim/
MIT License
36 stars 5 forks source link

Don't write empty result tables #1538

Closed visr closed 2 weeks ago

visr commented 3 weeks ago

Came up in https://github.com/Deltares/Ribasim/pull/1525#discussion_r1627515435

At first I thought it would be better to write e.g. subgrid_levels.arrow if Basin / subgrid is defined. That would still write an empty file if the input table is empty or there were no timesteps. But just never writing empty tables is much easier to implement and explain, and I expect the difference not to matter in practice.