Fix OpenROAD floorplan warning
@@ -77,17 +77,16 @@ def setup_tool(chip, step, index):
if len(floorplan_file) == 0:
return
+ elif len(floorplan_file) > 1:
+ chip.logger.warning('OpenROAD-based flows expect only one Python '
+ 'floorplan, but multiple were provided. '
+ f'Defaulting to {floorplan_file[0]}.')
floorplan_file = schema_path(floorplan_file[0])
if os.path.splitext(floorplan_file)[-1] != '.py':
return
- if len(floorplan_file) > 1:
- chip.logger.warning('OpenROAD-based flows expect only one Python '
- 'floorplan, but multiple were provided. '
- f'Defaulting to {floorplan_file}.')
-
fp = Floorplan(chip)
# Import user's floorplan file, call setup_floorplan to set up their
