Skip to content

Commit 05587f2

Browse files
Backport PR #901: remove use of deprecated sunpy api in example gallery (#902)
Co-authored-by: Stuart Mumford <[email protected]>
1 parent 792280e commit 05587f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/creating_even_spaced_wavelength_visualisation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
# This is due to the convention that WCS axis ordering is reversed
5454
# compared to data array axis ordering.
5555

56-
my_cube = NDCube(sequence_of_maps.as_array(), wcs=cube_wcs)
56+
my_cube = NDCube(data=sequence_of_maps.data, mask=sequence_of_maps.mask, wcs=cube_wcs)
5757
# Produce an interactive plot of the spectral-image stack.
5858
my_cube.plot(plot_axes=['y', 'x', None])
5959

0 commit comments

Comments
 (0)