Skip to content

Commit

Permalink
skip copying undefined meta blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
stscieisenhamer committed May 6, 2024
1 parent 12e25bd commit 61d4459
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/roman_datamodels/datamodels/_datamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ def append_individual_image_meta(self, meta):
else:
# Append to existing table
self.meta.individual_image_meta[key].add_row(subtable_vals)
# Skip non-schema metas
elif isinstance(value, dict):
continue

Check warning on line 110 in src/roman_datamodels/datamodels/_datamodels.py

View check run for this annotation

Codecov / codecov/patch

src/roman_datamodels/datamodels/_datamodels.py#L110

Added line #L110 was not covered by tests
# Skip ndarrays
elif isinstance(value.strip(), asdf.tags.core.ndarray.NDArrayType):
continue

Check warning on line 113 in src/roman_datamodels/datamodels/_datamodels.py

View check run for this annotation

Codecov / codecov/patch

src/roman_datamodels/datamodels/_datamodels.py#L113

Added line #L113 was not covered by tests
else:
# Skip ndarrays
if isinstance(value.strip(), asdf.tags.core.ndarray.NDArrayType):
continue

# Store Basic keyword
basic_cols.append(key)

Expand Down

0 comments on commit 61d4459

Please sign in to comment.