Skip to content

Commit

Permalink
Fix figure devdeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jan 22, 2025
1 parent 1e4a0de commit 8156d8b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dkist/dataset/tests/test_tiled_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ def test_tiled_dataset_from_components(dataset):
@pytest.mark.parametrize("share_zscale", [True, False], ids=["share_zscale", "indpendent_zscale"])
def test_tileddataset_plot(share_zscale):
from dkist.data.sample import VBI_AJQWW
ds = load_dataset(VBI_AJQWW)
ori_ds = load_dataset(VBI_AJQWW)
newtiles = []
for tile in ds.flat:
for tile in ori_ds.flat:
newtiles.append(tile.rebin((1, 8, 8), operation=np.sum))
# ndcube 2.3.0 introduced a deepcopy for rebin, this broke our dataset validation
# https://github.com/sunpy/ndcube/issues/815
for tile in newtiles:
tile.meta["inventory"] = ori_ds.inventory
ds = TiledDataset(np.array(newtiles).reshape(ds.shape), inventory=newtiles[0].inventory)
fig = plt.figure(figsize=(12, 15))
ds.plot(0, share_zscale=share_zscale, fig=fig)
Expand Down

0 comments on commit 8156d8b

Please sign in to comment.