File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/roman_datamodels/datamodels Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
- Replaced the previous test for ``schema_info `` with something more robust. [#344]
7
7
8
+ - Add conversion of dict to string during Qtable construction [#348]
9
+
8
10
0.19.1 (2024-04-04)
9
11
===================
10
12
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def append_individual_image_meta(self, meta):
90
90
91
91
subtable_cols .append (subkey )
92
92
93
- if isinstance (subvalue , list ):
93
+ if isinstance (subvalue , ( list , dict ) ):
94
94
subtable_vals .append ([str (subvalue )])
95
95
else :
96
96
subtable_vals .append ([subvalue ])
@@ -105,11 +105,13 @@ def append_individual_image_meta(self, meta):
105
105
else :
106
106
# Append to existing table
107
107
self .meta .individual_image_meta [key ].add_row (subtable_vals )
108
+ # Skip non-schema metas
109
+ elif isinstance (value , dict ):
110
+ continue
111
+ # Skip ndarrays
112
+ elif isinstance (value .strip (), asdf .tags .core .ndarray .NDArrayType ):
113
+ continue
108
114
else :
109
- # Skip ndarrays
110
- if isinstance (value .strip (), asdf .tags .core .ndarray .NDArrayType ):
111
- continue
112
-
113
115
# Store Basic keyword
114
116
basic_cols .append (key )
115
117
You can’t perform that action at this time.
0 commit comments