-
Notifications
You must be signed in to change notification settings - Fork 16
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
climatology Timeavg remake #373
base: main
Are you sure you want to change the base?
Conversation
@kiihne-noaa, could you change the title to start with "CLIMATOLOGY"? Thank you! |
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.
Can you go through the checklist that other PRs use? The template can be copied from here. It will help you self-review, and then i can do a final-review.
An example of a thing to consider: do we really need an entire two_file_test.py
, that looks largely like a carbon copy of test_generate_time_averages.py
? The similarity suggests that perhaps the new two-file test cases should be a set of tests under test_generate_time_averages.py
, which would reduce code-repeat, which makes it easier to keep the code up-to-date (fewer files to update).
It's good work- just needs polish.
Will do on the checklist. For the tests, I had separated them intially for simplicity, and then kept them separate at the end due to file length. trying to balance number of files and not having too long files. Combining them would cause the single test file to be over 450 lines long. Just confirming before I do that? |
I say go for it, part of the reason its so long is because of the commented out test cases- there's obviously going to be room for improvement in the future there. For now though- all you should have to do is basically migrate over the references to your new test files and call them something else variable name wise, then move over the test cases and rename them smth like |
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.
Let's avoid binary Netcdf files in the repository as they are difficult to remove later, and not trackable by git.
Smallest-possible .cdl files (created by ncgen)
92995e3
to
4792fe2
Compare
Describe your changes
timeavg fucntion can now accept multiple files. Tests work on two files, but any number should work. Creates a new, combined netcdf file, then runs options with it. Deletes file after output is created. Extra parameters added for fre-python-tools scenario to keep it running as it was before the change. Added versions of original tests that function with multiple files.
Checklist before requesting a review