Skip to content

Commit 5e1d7be

Browse files
committed
another round of changes from review
1 parent 6ecd380 commit 5e1d7be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jwst/cube_build/cube_build_step.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ def check_offset_file(self):
580580
" The units need to provided and only arcsec is allowed."
581581
)
582582

583-
# raise ValueError(
584-
# "Offset file is not correct. Offset file needs to have three lists: "
585-
# "filename, raoffset and decoffset all of the same length."
586-
# )
583+
raise ValueError(
584+
"Offset file is not correct. Offset file needs to have three lists: "
585+
"filename, raoffset and decoffset all of the same length."
586+
) from None
587587

588588
offset_filename = af["filename"]
589589
offset_ra = af["raoffset"]

jwst/cube_build/ifu_cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ def build_ifucube(self):
904904
nslices = 30
905905

906906
slicemap = [15, 14, 16, 13, 17, 12, 18, 11, 19, 10, 20, 9, 21, 8, 22, 7,
907-
23, 6, 24, 5, 25, 4, 26, 3, 27, 2, 28, 1, 29, 0] # fmt:skip
907+
23, 6, 24, 5, 25, 4, 26, 3, 27, 2, 28, 1, 29, 0] # fmt: skip
908908

909909
wcsobj, tr1, tr2, tr3 = nirspec._get_transforms( # noqa: SLF001
910910
input_model, np.arange(nslices)

0 commit comments

Comments
 (0)