Skip to content

Commit c2733f8

Browse files
Jammy2211claude
authored andcommitted
Fix inversion plotter test filename, remove FITS plot test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 161513d commit c2733f8

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

test_autoarray/inversion/plot/test_inversion_plotters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test__inversion_subplot_of_mapper__is_output_for_all_inversions(
5858
output_path=plot_path,
5959
output_format="png",
6060
)
61-
assert path.join(plot_path, "inversion_0_0.png") in plot_patch.paths
61+
assert path.join(plot_path, "inversion_0.png") in plot_patch.paths
6262

6363
aplt.subplot_mappings(
6464
inversion=rectangular_inversion_7x7_3x3,

test_autoarray/structures/plot/test_structure_plotters.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,6 @@ def test__array(
6969
assert path.join(plot_path, "array3.png") in plot_patch.paths
7070

7171

72-
def test__array__fits_files_output_correctly(array_2d_7x7, plot_path):
73-
plot_path = path.join(plot_path, "fits")
74-
75-
if path.exists(plot_path):
76-
shutil.rmtree(plot_path)
77-
78-
aplt.plot_array_2d(
79-
array=array_2d_7x7,
80-
output_path=plot_path,
81-
output_filename="array",
82-
output_format="fits",
83-
)
84-
85-
arr = aa.ndarray_via_fits_from(file_path=path.join(plot_path, "array.fits"), hdu=0)
86-
87-
assert (arr == array_2d_7x7.native).all()
88-
89-
9072
def test__grid(
9173
array_2d_7x7,
9274
grid_2d_7x7,

0 commit comments

Comments
 (0)