Skip to content

Commit e4e9935

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bfeb3c5 commit e4e9935

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

gwcs/converters/selector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
3434
inputs_mapping, models.Mapping
3535
):
3636
msg = (
37-
"inputs_mapping must be an instance"
38-
"of astropy.modeling.models.Mapping."
37+
"inputs_mapping must be an instanceof astropy.modeling.models.Mapping."
3938
)
4039
raise TypeError(msg)
4140
mapper = node["mapper"]

gwcs/converters/spectroscopy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
102102
groove_density=groove_density, spectral_order=order
103103
)
104104
else:
105-
msg = "Can't create a GratingEquation model with " f"output {output}"
105+
msg = f"Can't create a GratingEquation model with output {output}"
106106
raise ValueError(msg)
107107
return model
108108

gwcs/wcs.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,10 +1998,7 @@ def _to_fits_sip(
19981998
input_axes = sorted(set(input_axes))
19991999

20002000
if len(input_axes) != 2:
2001-
msg = (
2002-
"Only CelestialFrame that correspond to two "
2003-
"input axes are supported."
2004-
)
2001+
msg = "Only CelestialFrame that correspond to two input axes are supported."
20052002
raise ValueError(msg)
20062003

20072004
# Axis number for FITS axes.
@@ -2407,10 +2404,7 @@ def find_frame(axis_number):
24072404
or max(input_axes) + 1 != n_inputs
24082405
or min(input_axes) < 0
24092406
):
2410-
msg = (
2411-
"Input axes indices are inconsistent with the "
2412-
"forward transformation."
2413-
)
2407+
msg = "Input axes indices are inconsistent with the forward transformation."
24142408
raise ValueError(msg)
24152409

24162410
if detect_celestial:

0 commit comments

Comments
 (0)