Skip to content

v1.0.0b26

Choose a tag to compare

@jensdebruijn jensdebruijn released this 28 May 13:44
· 28 commits to main since this release
  • Write new model version after each version update in geb update-version. This way, when the model is updated multiple versions ahead, and one of the updates fails, the version updates that succeeded are still "saved".
  • Recently, there have been a lot of supply chain effects, where packages contained malicious code or instructions. To avoid most of these issues, but at the same time get relatively new updates (including those with important security updates) we limit any package updates to packages that are at least 3 days old in the uv.lock file. Here we use uv's exclude-newer option.
  • Update routing to include retention basins. By default no retention basins are set (all -1), however a dataset can be passed to set up retention basins. These basins can retain water during flood peaks, and slowly release water during low-flow periods. Set up using setup_retention_basins.
  • Fix case where river discharge was 0 in waterbodies (OK), but led to division by zero error in determining alpha for river widths (#819).
  • Use MIRCA-OS crop calendars rather than MIRCA2000 (#813).
  • Pre-allocate numpy arrays in reporter for both time and data. This uses significantly less memory as compared to Python lists, and because arrays are pre-allocated they do not cause RAM issues very late in the run but immediately instead.
  • Include an array tracking household expected annual damages (based on adaptation status).
  • Support exporting household attributes (such as ead) using the reporter in run_yearly.
  • When multiple outflow basins were selected that are not coastal basins, it could happen that some basins were erroneously excluded. This is now fixed.