Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2024
1 parent 4f36b0e commit 5b6b8ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/roman_datamodels/maker_utils/_datamodels.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import warnings

import gwcs
import numpy as np
from astropy import units as u
import gwcs

from roman_datamodels import stnode

Expand Down Expand Up @@ -137,7 +137,7 @@ def mk_level2_image(*, shape=(4088, 4088), n_groups=8, filepath=None, **kwargs):
)
wfi_image["cal_logs"] = mk_cal_logs(**kwargs)

wfi_image["meta"]["wcs"] = gwcs.WCS(output_frame='icrs')
wfi_image["meta"]["wcs"] = gwcs.WCS(output_frame="icrs")

return save_node(wfi_image, filepath=filepath)

Expand Down Expand Up @@ -192,7 +192,7 @@ def mk_level3_mosaic(*, shape=(4088, 4088), n_images=2, filepath=None, **kwargs)
)
wfi_mosaic["cal_logs"] = mk_cal_logs(**kwargs)

wfi_mosaic["meta"]["wcs"] = gwcs.WCS(output_frame='icrs')
wfi_mosaic["meta"]["wcs"] = gwcs.WCS(output_frame="icrs")

return save_node(wfi_mosaic, filepath=filepath)

Expand Down
3 changes: 1 addition & 2 deletions src/roman_datamodels/testing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import gwcs
import numpy as np
from asdf.tags.core import NDArrayType
from astropy.modeling import Model
import gwcs

from numpy.testing import assert_array_equal

from .stnode import DNode, TaggedListNode, TaggedObjectNode, TaggedScalarNode
Expand Down
4 changes: 2 additions & 2 deletions tests/test_maker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from unittest import mock

import asdf
import gwcs
import pytest
from astropy import units as u
from astropy.time import Time
import gwcs

from roman_datamodels import datamodels, maker_utils, stnode
from roman_datamodels.datamodels._datamodels import _RomanDataModel
Expand Down Expand Up @@ -149,7 +149,7 @@ def mutate_value(value):
return value + 1 * u.day

if isinstance(value, gwcs.WCS):
return gwcs.WCS(output_frame='fk5')
return gwcs.WCS(output_frame="fk5")

if isinstance(value, stnode.TaggedScalarNode):
return value.__class__(mutate_value(value.__class__.__bases__[0](value)))
Expand Down

0 comments on commit 5b6b8ca

Please sign in to comment.