Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Sep 2, 2025

This PR refactors the body of pset.execute out into _get_simulation_start_and_end_times to help with code maintainability, and make things easier to parse. The execution flow in _get_simulation_start_and_end_times is also easier to follow, and tests have been added to help with informative error messaging.

  • Chose the correct base branch (main for v3 changes, v4-dev for v4 changes)
  • Fixes None
  • Added tests
  • Added documentation
    • @erikvansebille I'm happy to leave the updating of the docstrings so we can do them all at the same time if that's ok? Worth noting the part talking about using a timedelta instead for endtime is now wrong (runtime would be used)

@VeckoTheGecko

This comment was marked as outdated.

@VeckoTheGecko
Copy link
Contributor Author

Nevermind, fixed in c5df886 - didn't see that at first, 5pm struggle 😅

Co-authored-by: Erik van Sebille <[email protected]>
@VeckoTheGecko VeckoTheGecko changed the title Add test_pset_execute_implicit_dt_one_second Refactor param handling of pset.execute Sep 2, 2025
@VeckoTheGecko VeckoTheGecko enabled auto-merge (squash) September 2, 2025 15:48
@VeckoTheGecko VeckoTheGecko merged commit b16fcc8 into v4-dev Sep 2, 2025
8 of 9 checks passed
@VeckoTheGecko VeckoTheGecko deleted the cleanup-pset-execute branch September 2, 2025 15:51
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants