Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean grid variables when recreating a grid #220

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

roeldegoede
Copy link
Collaborator

Issue addressed

When re-running the setup_grid (or setup_grid_from_region) functions after you added a gridded varaible, dep or msk for example, the RegularGrid class was updated correctly, but the SfincsModel.grid seemed to stick on the first grid and therefore the model didn't update correctly.

Not sure when this was introduced, but espeically in a GUI, refining the grid after adding variables happens often, so this is a serious bug ...

Explanation

setup_grid is always called when creating a new grid, so forcing the SfincsModel.grid to start blanco should solve the problem

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Updated documentation if needed
  • Updated changelog.rst if needed

Additional Notes (optional)

Add any additional notes or information that may be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant