Deltares/imod-python

Test changes in iMOD Python to iMOD Coupler

JoerivanEngelen opened this issue · 0 comments

Since we are going to make changes to MetaSWAP module in iMOD Python, our changes affect primod and iMOD Coupler.
It would be useful for future developments to have a test suite that could at least be run locally.

The iMOD Coupler test bench can be used for this:, roughly following these steps:

  • pull imod_coupler repo
  • pixi install
  • replace imod-python release with editable install of iMOD Python
  • Each time you want to tests changes in iMOD Python, run in iMOD Coupler directory: pixi run unittests

I see here that it should be possible to have multiple editable installs via PyPI in pixi: https://prefix.dev/blog/using_python_projects_with_pixi#pypi-source-dependencies
Also this also allows dev installing from git branches.

I've had some bad experiences with a general conda env and editable installations of iMOD Python and xugrid before, let's hope that pixi doesn't suffer from this.

Next steps would be to also get this to work in the CI.