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

BUG: epoch referenced before assignment #48

Open
jklenzing opened this issue Apr 3, 2023 · 1 comment
Open

BUG: epoch referenced before assignment #48

jklenzing opened this issue Apr 3, 2023 · 1 comment
Labels

Comments

@jklenzing
Copy link
Member

Description

When loading some cdf datasets, pysatCDF may reference epoch before it is assigned.

To Reproduce this bug:

import pysat 
import pysatNASA

vefi = pysat.Instrument('de2', 'vefi')
vefi.load(1983, 1)

yields

        # all of the data left over is 1D, add as Series
>       data = pandas.DataFrame(cdata, index=epoch)
E       UnboundLocalError: local variable 'epoch' referenced before assignment

../pysatCDF/pysatCDF/_cdf.py:686: UnboundLocalError

Test configuration

  • OS: Mac Monterrey
  • Version: python 3.10.8
  • enh/de2 branch of pysatNASA

Additional context

Found while working on pysat/pysatNASA#155

@jklenzing jklenzing added the bug label Apr 3, 2023
@jklenzing
Copy link
Member Author

According to GitHub Actions, this succeeds on windows, but fails on ubuntu / mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant