Skip to content

Commit

Permalink
Test scalar array to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Feb 23, 2024
1 parent d172ba6 commit 7ae7a19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dkist/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def dataset(array, identity_gwcs):
assert ds.data is array
assert ds.wcs is identity_gwcs

ds._file_manager = FileManager.from_parts(['test1.fits'], 0, 'float', array.shape,
# Construct the filename here as a scalar array to make sure that works as
# it's what dkist-inventory does
ds._file_manager = FileManager.from_parts(np.array('test1.fits'), 0, 'float', array.shape,
loader=AstropyFITSLoader)

return ds
Expand Down

0 comments on commit 7ae7a19

Please sign in to comment.