-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* minor refactor * add batch_dim argument * add get_results method to driver classes * wip implement run batch (sequential) * wip add batch in zarr store and runtime context * maybe resize zarr dataset for non-clock variables * rename ibatch -> batch and istep -> step * docstring minor change * split variable info and cache Variable info is common to all simulations in the batch, while variable cache is specific to each simulation in the batch. * update release notes * black * remove print * fix data assign of index variables (xarray error) * update release notes (more details) * update and fix tests Fix shape (must be shared between batch simulations) Fix scalar output variables Fix > 1 attempts to create the same zarr dataset Fix clock incrementers (one per batch) * black again * refactor: stick model state to Model object Added public methods and properties to Model for accessing or updating or validating its state (i.e., active simulation data). This redesign allows much cleaner code for drivers, given that one instance of a driver (and store) may now handle multiple simulations (batches). This also provides better (public) API for running models without using the xarray extension. It assumes that model cloning is a relatively cheap operation. * black * clean-up and add tests * zarr: don't create batch dim for index vars * fixes that still need some tests * doc: run batches section + lots of improvements * black * doc tweaks * more tests
- Loading branch information
Showing
25 changed files
with
950 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.