Addresses an issue found when loading subsequent days of DMSP SSUSI SDR-Disk data, which caused a memory failure. Fixed by adding a custom concat_data method. This shares many lines of code with TIMED GUVI, so the comment elements were moved to pysatNASA.instruments.methods.jhuapl.
Type of change
Please delete options that are not relevant.
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
import datetime as dt
import pysat
ssusi = pysat.Instrument('dmsp', 'ssusi', 'sdr-disk', 'f18')
stime = dt.datetime(2010, 4, 14)
ssusi.load(date=stime) # Will be fine
stime += dt.timedelta(days=1)
ssusi.load(date=stime) # Will fail and potentially crash your computer without fix
Test Configuration:
Operating system: OS X Big Sur
Version number: Python 3.9
Any details about your local setup that are relevant: develop branch of pysat
Checklist:
[x] Make sure you are merging into the develop (not main) branch
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] Add a note to CHANGELOG.md, summarizing the changes
[x] Update zenodo.json file for new code contributors
Description
Addresses an issue found when loading subsequent days of DMSP SSUSI SDR-Disk data, which caused a memory failure. Fixed by adding a custom
concat_data
method. This shares many lines of code with TIMED GUVI, so the comment elements were moved topysatNASA.instruments.methods.jhuapl
.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Test Configuration:
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