Conversation
dalonsoa
left a comment
There was a problem hiding this comment.
A step in the right direction, but there are a few things to change. You have A LOT of variables!!!
Thanks for the feedback. @davidorme I am using "topofcanopy_radiation" as input which I think you call "shortwave_in"? And I use "canopy_absorption" for what you call "layer_absorbed_irradiation". Do you have any reasons for picking one or the other, like pyrealm dependencies? Then I'm happy to rename it in my models. I expect "stomatal_conductance" as an input from the plant model, is that what your outputting? |
|
@vgro - I think it's easier if you don't delete the ones that aren't yours. Sorry! Otherwise we'll be in a position of having multiple files to remerge - that would be fine if we didn't share variables but we'll get dupes! |
|
I'm happy with those name changes! |
haha ok, no problem, I'll add them back in |
|
Super - thanks. I might work directly on this branch, if that's okay with you - easier to see what has been fixed up already! |
|
@davidorme all the variables that you added are already in the toml file but the name is different. |
|
@vgro - they all got picked up from running them through the system to discover all variable usage by models. I think they're all just instances where the model variable lines need deleting or changing? virtual_ecosystem/virtual_ecosystem/models/hydrology/hydrology_model.py Lines 112 to 113 in 86656f7 Should we just update the names in those lines and then delete the variables I've added to |
Like I said, I have already renamed the |
|
@dalonsoa This PR is in an odd place. I've checked things out with local merges and I haven't aligned everything (some tests fail on their expected log output), but I think it's going to be much easier to merge this down at this point (even if we have to bypass protections) and then work on a single PR. I could merge ETA: Actually - damnit - I'm going to have to merge |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## variables_1 #431 +/- ##
==============================================
Coverage ? 94.62%
==============================================
Files ? 71
Lines ? 3886
Branches ? 0
==============================================
Hits ? 3677
Misses ? 209
Partials ? 0 ☔ View full report in Codecov by Sentry. |
dalonsoa
left a comment
There was a problem hiding this comment.
I think all looks good to me. This includes the changes to all models?
Co-authored-by: Diego Alonso Álvarez <6095790+dalonsoa@users.noreply.github.com>
It does include all models. Tests all now pass - I have updated all the code and tests to handle the simplified The docs fail for relevant reasons - the docs now include a walk through of the model running on the example data. That is using a wider set of models than are included in I think we probably still merge this down to have one branch on this issue again and tackle that problem separately? |
|
Yes, I think that's the best way forward. |
I reviewed the variables in
data_variables.tomlthat are related to the abiotic models and the hydrology model. I also updated the contents ofrequired_init_vars,vars_updated,required_update_varsandvars_initialised. I hope I captured everything.I have not updated the tests because I was not quite sure if that was sensible at this stage.