Various bug fixes to allow vr_run to work with soil and abiotic_simple models#236
Various bug fixes to allow vr_run to work with soil and abiotic_simple models#236
vr_run to work with soil and abiotic_simple models#236Conversation
…ollegeLondon/virtual_rainforest into bugfix/vr_run_problems
…ading them from upstream input
|
Adding @vgro as a reviewer as I'm not sure of best practice when a pull request is cowritten |
Codecov Report
@@ Coverage Diff @@
## develop #236 +/- ##
===========================================
+ Coverage 95.23% 95.33% +0.10%
===========================================
Files 36 40 +4
Lines 1553 1715 +162
===========================================
+ Hits 1479 1635 +156
- Misses 74 80 +6
... and 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
davidorme
left a comment
There was a problem hiding this comment.
LGTM - minor comment on using admonitions.
I think we should structure the main simulation document a bit more (and introduce all of the defined steps, even if they are currently lightly used). I was going to make suggestions, but instead I'm going to commit a suggested update. I've updated the Sphinx conf to include a mermaid diagram. I think that is useful here and it is probably something we'll want to use more of.
| **NOTE**: At the moment, | ||
| `core.data.variable` tags cannot be used across multiple toml config files without | ||
| causing `ConfigurationError: Duplicated entries in config files: core.data.variable` to | ||
| be raised. This means that all variables need to be combined in one `config` file. | ||
|
|
There was a problem hiding this comment.
I think it is worth explicitly using warning admonitions here. Partly that is that they look nice and call more attention to the warning, but it is then also easier to search for and review these kinds of messages.
| **NOTE**: At the moment, | |
| `core.data.variable` tags cannot be used across multiple toml config files without | |
| causing `ConfigurationError: Duplicated entries in config files: core.data.variable` to | |
| be raised. This means that all variables need to be combined in one `config` file. | |
| ```{warning} | |
| At the moment, | |
| `core.data.variable` tags cannot be used across multiple toml config files without | |
| causing `ConfigurationError: Duplicated entries in config files: core.data.variable` to | |
| be raised. This means that all variables need to be combined in one `config` file. | |
| ``` |
On another note - Myst has relatively recently gone to version 1.0.0 and there are some stabilised syntax things like using colon-fence notation. We should probably go through and update docs to use the recommended 1.0.0 syntax.
There was a problem hiding this comment.
Actually it looks like we're currently pinned to myst-parser <1.0.0 by some myst-nb and sphinx version pins ( see executablebooks/MyST-NB#513). As and when that is resolved we should review our MyST content and syntax.
| that setting is not found in the configuration, but if no default is set then the | ||
| validation will fail. Further details can be found in the [configuration | ||
| documentation](./core/config.md). | ||
| * [`AbioticModel`](../api/abiotic.md), |
There was a problem hiding this comment.
I think this probably should be abiotic_simple.md as that's the version we are using at the moment
There was a problem hiding this comment.
Good point - I've included both links since I think they will both be here to stay.
| procedures to ensure that the loaded data can be mapped onto the spatial grid and also | ||
| other core dimensions for the configured simulation. Further details can be found in the | ||
| [data system](./core/data.md) and [core axes](./core/axes.md) documentation. | ||
| The core configuration will include the configuration details for each individual |
There was a problem hiding this comment.
These details won't be in the core configuration
There was a problem hiding this comment.
Yeah - clumsily phrased.
I like the idea of using the diagrams, however, they don't come out very nicely at the moment (e.g. the lines go over the text). |
|
Yeah - it definitely isn't as I'd like and I am normally really fussy about figures. That is mostly the tool: |
Description
This pull request is mainly small bug fixes to make the
vr_runfunction runable for theabiotic_simpleandsoilmodels (using data stored on RDS).The most substantive change is moving the definition of layer roles from the
abiotic_simplemodel into the core utilities. This was necessary as thesoilmodel also needed to make use of these layers roles (to find the index associated with the top soil layer).This PR also updates the documentation to explain to users how to access the data (if they are part of the VR project), and updates the simulation flow documentation to reflect recent changes to the flow.
Fixes #235
Type of change
Key checklist
pre-commitchecks:$ pre-commit run -a$ poetry run pytestFurther checks