Skip to content

Commit

Permalink
fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 authored and rosteen committed Aug 17, 2021
1 parent d9a7d79 commit d30de97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jdaviz/core/data_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import astropy.io
from specutils.io.registers import identify_spectrum_format
from specutils import Spectrum1D, SpectrumList
from specutils import SpectrumList

from jdaviz.core.config import list_configurations

Expand Down
4 changes: 2 additions & 2 deletions jdaviz/tests/test_data_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def create_jwst(n_dim=None, multi=None, ext=None):
exts.append(ex1d)
# create two more extensions
if multi:
for i in range(1,3):
for i in range(1, 3):
ex1d = _create_bintable(ext, ver=i)
exts.append(ex1d)
shape = (1,) if n_dim == 1 else (1, 2,) if n_dim == 2 else (1, 2, 3) if n_dim == 3 else (1,)
shape = (1,) if n_dim == 1 else (1, 2,) if n_dim == 2 else (1, 2, 3) if n_dim == 3 else (1, )
sci.data = np.empty(shape)
if n_dim > 1:
exts.append(sci)
Expand Down

0 comments on commit d30de97

Please sign in to comment.