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 Feb 22, 2024
1 parent 11ff5d3 commit d2713e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/roman_datamodels/maker_utils/_datamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def mk_source_catalog(*, filepath=None, **kwargs):

source_catalog["source_catalog"] = kwargs.get("source_catalog", Table([range(3), range(3)], names=["a", "b"]))
source_catalog["meta"] = mk_common_meta()
source_catalog["meta"].update(kwargs.get("meta", dict(segmentation_map='')))
source_catalog["meta"].update(kwargs.get("meta", dict(segmentation_map="")))

return save_node(source_catalog, filepath=filepath)

Expand Down Expand Up @@ -481,7 +481,6 @@ def mk_segmentation_map(*, filepath=None, shape=(4096, 4096), **kwargs):

segmentation_map["data"] = kwargs.get("data", np.zeros(shape, dtype=np.uint32))
segmentation_map["meta"] = mk_common_meta()
segmentation_map["meta"].update(kwargs.get("meta", dict(filename='')))
segmentation_map["meta"].update(kwargs.get("meta", dict(filename="")))

return save_node(segmentation_map, filepath=filepath)

0 comments on commit d2713e4

Please sign in to comment.