-
Notifications
You must be signed in to change notification settings - Fork 53
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
Restarted from enhancement to aggregation script and small fixes #185
base: develop
Are you sure you want to change the base?
Restarted from enhancement to aggregation script and small fixes #185
Conversation
70cf156
to
de71135
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 think we agreed that matrix-nio could be removed from the requirements/environment, can you do that and anything else you made a note of when we talked last week?
Hi @gutmann, sorry for the slow changes, took three days of PTO so was a bit slow getting to this but the things we talked about should be encapsulated in these new commits. I changed the README to describe the additional Python package requirements. I should note that the Bunch package is 12 years old and doesn't support Python 3. I can look at updating the |
Thanks, if I recall correctly, "bunch" is a ~10 line python module... either it could be updated or we can just drop it. I suspect none of the scripts that are actively used anymore still use it. Let's just move all the scripts that do rely on it to some sort of deprecated archive folder for reference. I realize we could just delete them and they will still exist in git, but nobody would find them if we do that, and they could still be useful for someone to modify for future projects. |
Weird, looking at that bunch repo, it has a python3 compatibility, does that not work? Also, funny that the core 10-line functionality has now ballooned into 400+ lines of code with all the comments, yaml/json support, etc. Useful, but then with just 10-lines I knew what it was doing 🙃 |
4290db1
to
e26251f
Compare
PR should be good to go, here is a summary of changes since there were a lot of things stuck into this one:
|
…n was restarted from
…l test cases easier
…ure aggregated output is correct
…l attribute of the NetCDF file, removes aggregated files newer than than that date if it exists. Otherwise remove all aggregated files before aggregation. This prevents negative precip from sneaking into output, due to output differences from different restarted from dates
…otlib. Updating README on how to install older packages Bunch and nio
…iles not from a restarted run or do not have the restarted_from attribute print a note of this, rather than delete existing aggregated files
…ns that need to be called, cleaning up the driver code a bit. Old output init is renamed to init_variables
…ecated units package. Small fixes to other python scripts so they run. README updated to say that the Nio package is not installed as a dependency here
9fdcf3b
to
c76f98d
Compare
TYPE: bugfix
KEYWORDS: precipitation, restarts, ideal tests, Python requirements
SOURCE: Soren Rasmussen, NCAR
DESCRIPTION OF CHANGES:
restarted_from
global attribute to NetCDF filesrestarted_from
daterestarted_from
is equal toNot Restarted
, delete all aggregated filesicar_options.nml
,init.nc
andforcing.nc
.travis.yml
since Travis CI is no longer usedISSUE: Fixes #180 and negative precip
TESTS CONDUCTED: Used the ideal testing files to do runs testing the new features in the aggregate script. Tested behavior of script with different
restarted_from
NetCDF values. Ran new aggregate script on old outputted files that had negative precip and it fixed the issue.NOTES: Optional, as appropriate. Delete if not used. Included only once for
new features requiring several merge cycles. Changes to default behavior are
also note worthy.
Checklist