@@ -1106,24 +1106,11 @@ def store_results(
1106
1106
else :
1107
1107
factor = Q_ (1 , current_units ).m_as (units )
1108
1108
tmp = scale (data [key ], factor )
1109
- properties .put (
1110
- _property , json .dumps (tmp , separators = ("," , ":" ))
1111
- )
1109
+ properties .put (_property , tmp )
1112
1110
else :
1113
- if result_metadata ["dimensionality" ] == "scalar" :
1114
- properties .put (_property , data [key ])
1115
- else :
1116
- properties .put (
1117
- _property ,
1118
- json .dumps (data [key ], separators = ("," , ":" )),
1119
- )
1120
- else :
1121
- if result_metadata ["dimensionality" ] == "scalar" :
1122
1111
properties .put (_property , data [key ])
1123
- else :
1124
- properties .put (
1125
- _property , json .dumps (data [key ], separators = ("," , ":" ))
1126
- )
1112
+ else :
1113
+ properties .put (_property , data [key ])
1127
1114
1128
1115
# Store as JSON
1129
1116
if "json" in value :
@@ -1299,9 +1286,12 @@ def store_results(
1299
1286
)
1300
1287
else :
1301
1288
if result_metadata ["dimensionality" ] == "scalar" :
1302
- table .at [row_index , column ] = round (
1303
- data [key ], def_fmt [units ]
1304
- )
1289
+ if units in def_fmt :
1290
+ table .at [row_index , column ] = round (
1291
+ data [key ], def_fmt [units ]
1292
+ )
1293
+ else :
1294
+ table .at [row_index , column ] = data [key ]
1305
1295
else :
1306
1296
table .at [row_index , column ] = json .dumps (
1307
1297
data [key ], separators = ("," , ":" )
0 commit comments