Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## main #226 +/- ##
==========================================
- Coverage 78.03% 77.75% -0.28%
==========================================
Files 101 101
Lines 5432 5454 +22
==========================================
+ Hits 4239 4241 +2
- Misses 1193 1213 +20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
- Modify populate_dataset_df so that get_run_run_ts_from_mth5 is deprecated there. - pack "run_reference" column of kernel_dataset dataframe, rather than putting the run_object directly in the dataframe - remove "run" column from kernel_dataset dataframe - replace with method get_run_object(index_or_row) - deprecate get_run_run_ts method in time_series_helpers [Issue(s): #223]
… decimated_sample_rate
[Issue(s): #223]
Collaborator
Author
|
A minor decrease in code cov owes to new methods of resample that have been developed and bench tested but are not yet in the testing framework. Due to the approaching IRIS MT Short Course, besides any bugs that need to be fixed, this PR merge will be the workshop branch and will be either released or at least tagged next Friday 14 October |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
test on v3.9
Review the populating of dataset_df
NO, because we only have two stations this is not needed until we have multiple station processing
[] Make a version of decimation that doesn't drop out and back into xarray
NO: see issue xr-scipy #227, xarray does not seem to support this properly yet.
However, I did create two pure xarray implementations of the decimation. One using coarsen() and one using resample(), if for no other reason than to show the syntax. Running these on the synthetic data produced reasonable results but each decimated sample is basically constructed from the mean of the decimation_factor number of samples around the time point. This is a very weak form of AAF, and I don't trust it yet. The resample command is in general very slow, whereas coarsen seems pretty fast, and they both basically do the same thing.
These functions are called
prototype_decimate_2andprototype_decimate_3, and are in time_series_helpers.py.Move sample_rate updating into the run_ts xarray object metadata dictionary (rather than modifying in-place the run_object)