We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9cb46d + 0888df5 commit c83d098Copy full SHA for c83d098
flow/util/genRuleFile.py
@@ -237,13 +237,11 @@
237
'!=': operator.ne,
238
}
239
240
-period_list = list()
241
-for entry in metrics['constraints__clocks__details']:
242
- period_list.append(float(sub(r'^.*: ', '', entry)))
+period_list = metrics['constraints__clocks__details']
243
+period = float(sub(r'^.*: ', '', period_list[0]))
244
if len(period_list) != 1:
245
- print('[WARNING] Multiple clocks not supported. Will use first clock.')
246
-period = period_list[0]
+ print(f'[WARNING] Multiple clocks not supported. Will use first clock: {period_list[0]}.')
247
248
for field, option in rules_dict.items():
249
if field not in metrics.keys():
0 commit comments