Closed aburrell closed 8 months ago
What's the status of this pull? Is it waiting on a new pysat release?
This requires the pysat pull request: https://github.com/pysat/pysat/pull/1131 to work.
Yes, it requires a pysat release.
Testing this branch against the pysat 3.2.0 RC, I see the following failures (for guvi):
test_load_multiple_days
fails for tag='sdr-spectrograph' (all inst_ids)
AssertionError
, assert len(np.unique(self.test_inst.index.day)) > 1
test_load_w_pad
fails for tag='sdr-imaging' (all inst_ids) with combine_times=True
ValueError: cannot rename 'time_auroral' because it is not found in the dimensions of this dataset ()
Full error output at https://github.com/pysat/pysatNASA/actions/runs/7051616139/job/19194923688 Some of this has been documented in #218
@aburrell, I think to finish this one we just need to fix the test_load_with_pad
test (see above comment). The other guvi error can be handled separately.
@jklenzing I fixed both GUVI errors. The first one was a data-availability issue. I picked test days with better coverage and everything looks good.
TODO:
Running vs the RC, there is a segmentation fault in the ubuntu branch: https://github.com/pysat/pysatNASA/actions/runs/8163504069
Reran the branch, happened again. The develop branch passes without issue.
Fixed the segmentation fault issue. Applying the skip test flags to the high-res data only allows the new concat routines to be tested, while avoiding memory issues on GA. https://github.com/pysat/pysatNASA/actions/runs/8189899989
From the tests: | Run with | Stmts | Miss | Cover |
---|---|---|---|---|
pysat 3.1.0 | 78 | 27 | 65% | |
pysat 3.2.0rc6 | 78 | 5 | 94% |
Description
Addresses #197 by adding a custom
concat_data
method to the TIMED GUVI instrument. This requires the pysat pull request: https://github.com/pysat/pysat/pull/1131 to work.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Load TIMED GUVI data for the
sdr-imaging
tag. Check and see that the Auroral data does not have the 'time' dimension, rather it has only the 'time_auroral' dimension (in addition to other appropriate dimensions). Also, the extent of the 'time_auroral' dimension should be limited to the period of time encompassed by 'time'.Yields:
Also, there should be no warnings raised when loading the data, as there is meta data for all variables and cleaning applied to these data tags/inst IDs.
Finally, unit tests should be run locally against https://github.com/pysat/pysat/pull/1131 to ensure appropriate behaviour with updated pysat handling.
Test Configuration:
inst_concat_data_method
Checklist:
develop
(notmain
) branchCHANGELOG.md
, summarizing the changesIf this is a release PR, replace the first item of the above checklist with the release checklist on the wiki: https://github.com/pysat/pysat/wiki/Checklist-for-Release