GOLD nmax includes 2 independent channels, which occasionally have the same start time for a given sweep. This leads to approximately 0.3% of daily files not having a unique index.
This adds one microsecond to the Channel B data to maintain uniqueness.
Type of change
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
import datetime as dt
import pysat
date = dt.datetime(2019, 4, 17)
inst = pysat.Instrument('ses14', 'gold', tag='nmax', use_header=True)
inst.download(date, date)
inst.load(date=date)
In develop, this day returns ValueError: Loaded data is not unique.
It loads correctly in this branch.
Test Configuration
Operating system: Monterrey
Version number: python 3.10.8
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 #139
GOLD nmax includes 2 independent channels, which occasionally have the same start time for a given sweep. This leads to approximately 0.3% of daily files not having a unique index.
This adds one microsecond to the Channel B data to maintain uniqueness.
Type of change
How Has This Been Tested?
In develop, this day returns
ValueError: Loaded data is not unique.
It loads correctly in this branch.Test Configuration
Checklist:
develop
(notmain
) branchCHANGELOG.md
, summarizing the changes