File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def create_kernel_dataset(
192
192
run_summary = self .get_run_summary ()
193
193
194
194
if sample_rate is not None :
195
- run_summary = self . run_summary .set_sample_rate (sample_rate )
195
+ run_summary = run_summary .set_sample_rate (sample_rate )
196
196
197
197
self .from_run_summary (
198
198
run_summary ,
@@ -339,8 +339,10 @@ def process(
339
339
kernel_dataset = pdict ["kernel_dataset" ],
340
340
)
341
341
if mt_obj is not None :
342
- tf_processed [sr ]["processed" ] = True
343
- tf_processed [sr ]["tf" ] = mt_obj
342
+ tf_processed [key ][
343
+ "processed"
344
+ ] = mt_obj .has_transfer_function ()
345
+ tf_processed [key ]["tf" ] = mt_obj
344
346
345
347
processed = self ._validate_tf_processed_dict (tf_processed )
346
348
if len (processed .keys ()) > 1 :
@@ -420,6 +422,10 @@ def _validate_tf_processed_dict(self, tf_dict):
420
422
for key , p_dict in tf_dict .items ():
421
423
if p_dict ["processed" ]:
422
424
new_dict [key ] = p_dict
425
+ else :
426
+ self .logger .warning (
427
+ f"Sample rate { key } was not processed correctly. Check log."
428
+ )
423
429
424
430
if new_dict == {}:
425
431
raise ValueError ("No Transfer Functions were processed." )
You can’t perform that action at this time.
0 commit comments