-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add CABLE model driver #314
Conversation
Hello @aidanheerdegen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-12-20 02:49:10 UTC |
@ccarouge I have implemented a basic templating scheme for the There is an example of it's use in the https://github.com/aidanheerdegen/cable_test/tree/template The basic idea is to use year: 1904 It's still a bit rough. There is no way to start this process without a Just looked, and I can see it is available in the |
I got notice that a CircleCI build failed. This is out of date because @dougiesquire has updated the CI to use GitHub Workflows. I/we should rebase this and force push to the repo to get it up to date with those changes. Note that there is a conflict in Happy to go through the process next week @SeanBryan51 if that is helpful. |
In this payu experiment, we only have met forcing files from 1903 to 1909 - causing the model to crash when the year value exceeds 1909. Should we include logic to repeat the forcing once the model exceeds the duration of the forcing? To implement this, I'm thinking we:
@aidanheerdegen do you see any issues with this? |
1ae61eb
to
4ec1443
Compare
@SeanBryan51 and I had a IRL chat. I believe I suggested a Is that still an workable option? |
I think I'm happy with the implementation of the driver. @aidanheerdegen or @jo-basevi are you happy to give this a review? Whenever you guys have the time. |
Happy to review .. so my first suggestion is to add some tests for your driver. Specifically the forcing logic, but if there are any other you can think of that might be useful add them to. There are some tests under No-one wants to hear "write tests", but you know you should :) .. particularly the guy that just gave a skillshare on ;) @jo-basevi has written some nice ones recently using parameterised decorators if you want inspiration. |
4b8c821
to
3267f62
Compare
@aidanheerdegen I have added some tests for the forcing logic. I've tried to make the tests light weight by creating a separate helper function (the private methods in the |
3267f62
to
8dae656
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't make any comments on the tests because I wasn't sure how to interpret the inputs.
@SeanBryan51 are you ready to merge this? Do you need another review? |
@aidanheerdegen after I clean up the commit history this should be all good to go in. |
This change adds a model driver for running CABLE spatially in the offline configuration (forced atmosphere). A template for CABLE experiments can be found [here][cable_example]. Fixes #313 [cable_example]: https://github.com/CABLE-LSM/cable_example
65fd559
to
e437db3
Compare
Just doing some final checks to make sure things are working. |
Ready when you are @aidanheerdegen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving on behalf of @aidanheerdegen
Add model driver for CABLE model
http://climate-cms.wikis.unsw.edu.au/CABLE
Closes #313