Skip to content

Commit

Permalink
Merge pull request #118 from keflavich/issue117
Browse files Browse the repository at this point in the history
bugfix: undeclared variable
  • Loading branch information
astrofrog authored Sep 28, 2023
2 parents 9911f29 + 779e0f4 commit fe3f1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvextractor/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def __init__(self, filename_or_cube, backend=None, clim=None, cmap=None):
warnings.warn("spectral_cube package is not available - using astropy.io.fits directly")
from astropy.io import fits
self.array = fits.getdata(filename_or_cube)
self.shape = array.shape
self.shape = self.array.shape
self.ok_mask = np.isfinite(self.array)
if self.array.ndim != 3:
raise ValueError("dataset does not have 3 dimensions (install the spectral_cube package to avoid this error)")
Expand Down

0 comments on commit fe3f1ca

Please sign in to comment.