Skip to content

Commit

Permalink
WIP: Don't use dummy WCS
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jan 25, 2022
1 parent 3db79bc commit 5f73486
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jdaviz/configs/cubeviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ def _parse_ndarray_3d(app, file_obj, data_label, data_type):
else:
flux_unit = u.count
flux = file_obj << flux_unit
fake_wcs = generate_dummy_fits_wcs_3d()
sc = Spectrum1D(flux, wcs=fake_wcs)
# fake_wcs = generate_dummy_fits_wcs_3d()
idx = np.arange(flux.shape[-1]) * u.pix
sc = Spectrum1D(spectral_axis=idx, flux=flux)
app.add_data(sc, data_label)
_show_data_in_cubeviz_viewer(app, data_label, data_type)

0 comments on commit 5f73486

Please sign in to comment.