Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Update pysat deprecations #182

Merged
merged 8 commits into from
Jun 8, 2023
Merged

MAINT: Update pysat deprecations #182

merged 8 commits into from
Jun 8, 2023

Conversation

jklenzing
Copy link
Member

@jklenzing jklenzing commented Jun 6, 2023

Description

Updates syntax based on latest pysat deprecations to make the code compatible with pysat 3.2.0.

Type of change

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

How Has This Been Tested?

via pytest with pysat 3.1.0, search for deprecation warnings.

Test Configuration

  • Operating system: Monterrey
  • Version number: Python 3.9.7
  • pysat 3.1.0

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 added this to the 0.0.5 Release milestone Jun 6, 2023
@jklenzing jklenzing marked this pull request as ready for review June 6, 2023 14:03
@@ -244,7 +244,8 @@ def load(fnames, tag='', inst_id=''):
epoch_name = 'nevents'

data, meta = load_netcdf(fnames, pandas_format=pandas_format,
epoch_name=epoch_name, labels=labels,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this instrument not need the labels positional arg?

@@ -244,7 +244,8 @@ def load(fnames, tag='', inst_id=''):
epoch_name = 'nevents'

data, meta = load_netcdf(fnames, pandas_format=pandas_format,
epoch_name=epoch_name, labels=labels,
epoch_name=epoch_name,
meta_kwargs={'labels': labels},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels now handled by meta_kwargs

@jklenzing jklenzing merged commit 1850c78 into develop Jun 8, 2023
20 of 21 checks passed
@jklenzing jklenzing deleted the maint/pysat_depr branch June 8, 2023 15:50
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.

None yet

2 participants