|
43 | 43 | store_2D_coefficients,
|
44 | 44 | )
|
45 | 45 |
|
46 |
| - |
47 | 46 | __all__ = ["WCS"]
|
48 | 47 |
|
49 | 48 | _ITER_INV_KWARGS = ["tolerance", "maxiter", "adaptive", "detect_divergence", "quiet"]
|
@@ -162,8 +161,11 @@ def __call__(
|
162 | 161 | *args, with_bounding_box=with_bounding_box, fill_value=fill_value, **kwargs
|
163 | 162 | )
|
164 | 163 | if with_units:
|
165 |
| - warnings.warn("the 'with_units' parameter is deprecated and will be removed in the next release." |
166 |
| - "Use the shared API method 'pixel_to_world'", DeprecationWarning) |
| 164 | + warnings.warn( |
| 165 | + "the 'with_units' parameter is deprecated and will be removed in the next release." |
| 166 | + "Use the shared API method 'pixel_to_world'", |
| 167 | + DeprecationWarning, |
| 168 | + ) |
167 | 169 | # values are always expected to be arrays or scalars not quantities
|
168 | 170 | results = self._remove_units_input(results, self.output_frame)
|
169 | 171 | high_level = values_to_high_level_objects(*results, low_level_wcs=self)
|
@@ -379,8 +381,11 @@ def invert(
|
379 | 381 | )
|
380 | 382 |
|
381 | 383 | if with_units:
|
382 |
| - warnings.warn("the 'with_units' parameter is deprecated and will be removed in the next release." |
383 |
| - "Use the shared API method 'pixel_to_world'", DeprecationWarning) |
| 384 | + warnings.warn( |
| 385 | + "the 'with_units' parameter is deprecated and will be removed in the next release." |
| 386 | + "Use the shared API method 'pixel_to_world'", |
| 387 | + DeprecationWarning, |
| 388 | + ) |
384 | 389 | results = self._remove_units_input(results, self.input_frame)
|
385 | 390 | high_level = values_to_high_level_objects(
|
386 | 391 | *results, low_level_wcs=self.input_frame
|
@@ -1196,7 +1201,10 @@ def transform(
|
1196 | 1201 | )
|
1197 | 1202 |
|
1198 | 1203 | if with_units:
|
1199 |
| - warnings.warn("the 'with_units' parameter is deprecated and will be removed in the next release.", DeprecationWarning) |
| 1204 | + warnings.warn( |
| 1205 | + "the 'with_units' parameter is deprecated and will be removed in the next release.", |
| 1206 | + DeprecationWarning, |
| 1207 | + ) |
1200 | 1208 | results = self._remove_units_input(results, to_step.step.frame)
|
1201 | 1209 |
|
1202 | 1210 | high_level = values_to_high_level_objects(
|
|
0 commit comments