-
Notifications
You must be signed in to change notification settings - Fork 33
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
Address diffs v2.12.1 to v3 #907
Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a84b860
address_diffs_v2.12.1_to_v3
chengzhuzhang 796ca4c
Revert "address_diffs_v2.12.1_to_v3"
chengzhuzhang 0591c39
add_test_scripts
chengzhuzhang ee009c1
Fix incorrect logic for `udunits` conversions in `convert_units()`
tomvothecoder 528bac6
Add complete run script
tomvothecoder 8982c31
Update run script to save netCDF
tomvothecoder 09e853c
Update dev dir for regression notebook
tomvothecoder b9da444
Add time slicing before `.load()` for performance
tomvothecoder 4ad47a7
Add arm_diags and merra2 debug scripts
tomvothecoder b1a5a77
Fix hanging for derived vars with convert_units()
tomvothecoder 3ea5422
Add arm_diags back into complete run script
tomvothecoder a76cfd8
Squeeze time dim for climo files before loading into memory
tomvothecoder af046a2
Update arm diags debug scripts with info on specific issues
tomvothecoder 65f61ac
Add script debug H2OLNZ
tomvothecoder 45277e6
Add H2OLNZ unit conversion from PR #874
tomvothecoder f346c51
Add v3 regression testing results
tomvothecoder 94959cc
Add v2 data regression testing
tomvothecoder 9221c5b
Update regression testing scripts
tomvothecoder 313a641
update site data pre-processing script based on xarray
chengzhuzhang 7020a25
Update v2 regression test notebooks
tomvothecoder d94ed40
Add `pywavelets` dependency to fix scipy `cwt` deprecation
tomvothecoder 2144f51
Clean up postprocessing script for arm_diags
tomvothecoder 60f53bc
figure out how to use pywavelets
tomvothecoder dd19a17
Add final v3 data regression test results
tomvothecoder 01a91e4
Revert pywavelets code changes and constrain `scipy <1.15`
tomvothecoder 1b0f998
Apply suggestions from code review
tomvothecoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@chengzhuzhang We need to replace
cwt
from scipy with PyWavelets (#912) I'm trying to figure out where to pass thedeg = 6
arg here. If you can try taking a look too that'd be great.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.
Click here for diff: https://github.com/E3SM-Project/e3sm_diags/pull/907/files/2144f51f07a9b855e1b763a3cc5f1a493bac7f68..60f53bc5165bb6bb61b549a3dee6d74627681856#diff-747eb4531216710f7645e357652e33c3fe74c293bbb311a1b9c298a8193f02af
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.
Related SciPy docs:
Related PyWavelets docs:
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.
@whannah1 hey Walter, as we are preparing for the e3sm_diags v3 release, @tomvothecoder found that
scipy.signal.cwt
andscipy.signal.morlet2
are removed from latestscipy
, and the suggestion was to usepywavelets
instead. It seems that transition to use pywavelets API is not straightforward and not much documentation was found to help transition. I'm wondering if you are familiar with the this tool and could help re-write this_get_psd_from_wavelet
function?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.
@chengzhuzhang I suggest that we:
scipy < 1.15
for now -- FYI @xylar for E3SM Unified (will update E3SM Confluence page)Let me know thoughts.
UPDATE: Just saw Xylar's comment here related to 3.
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.
All are reasonable! I was thinking along the same line.
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 want to make sure we're on the same page. This constraint would not be in E3SM-Unified, it would be in e3sm_diags. But it would be important that E3SM-Unified or its other dependencies don't contradict this constraint.
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.
Yup we're on the same page. Thanks for confirming.
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.
@tomvothecoder, see comment from @whannah1 here. We can either implement this as-is, and testing and fine tune (if needed) during testing period. Or pinning
scipy
, and update to usepywavelets
during testing.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.
@chengzhuzhang I'm going to pin
scipy
here and address #912 in a separate PR.