Skip to content

Conversation

@jklenzing
Copy link
Member

@jklenzing jklenzing commented Mar 31, 2023

Description

Partially Addresses #139

Updates GOLD NMAX to use sortby to guarantee the index is monotonic increasing. Scans from two separate instruments are combined into one xarray object. The long term goal is to separate these into separate instruments, but this is waiting on constellation updates in pysat.

Note: This does not guarantee that the index will be unique. Between 2018 day 278 and 2023 day 64, approximately 0.3% of files have a non-unique index. 51% of the files have a non-monotonic index.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

import pysat
gold = pysat.Instrument('ses14', 'gold', tag='nmax')
gold.load(2020, 1)

In develop, this will fail due to non-monotonic increasing index.

Test Configuration

  • Operating system: Mac Monterrey
  • Version number: python 3.10.8

Checklist:

  • Make sure you are merging into the develop (not main) branch
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • Add a note to CHANGELOG.md, summarizing the changes
  • Update zenodo.json file for new code contributors

@jklenzing jklenzing changed the base branch from main to develop March 31, 2023 19:16
@jklenzing jklenzing marked this pull request as ready for review March 31, 2023 20:29
@jklenzing jklenzing added this to the 0.0.5 Release milestone Mar 31, 2023
@jklenzing jklenzing requested a review from aburrell April 3, 2023 14:08
@jklenzing jklenzing merged commit cd01061 into develop Apr 3, 2023
@jklenzing jklenzing deleted the bug/gold branch April 3, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants