Skip to content

Commit

Permalink
Refs #113 idstart on shiftpanel
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Borreguero <[email protected]>
  • Loading branch information
jmborr committed Sep 26, 2019
1 parent 96f5503 commit 4779a2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hb3a_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def add_panel(self, bank_id, geom_setup_dict, cal_shift_x, cal_shift_y, cal_shif
if component_use_bank_id:
arm_node_name += '{}'.format(bank_id)

arm_node = self.add_component(type_name=arm_node_name, idfillbyfirst='x', idstart=start_pixel_id,
idstepbyrow=pixel_column_count)
arm_node = self.add_component(type_name=arm_node_name, idfillbyfirst=None, idstart=None,
idstepbyrow=None)
self.add_location('bank{}'.format(bank_id), arm_node, arm_loc_dict)

# Define arm node type: arm
Expand Down Expand Up @@ -125,8 +125,8 @@ def add_panel(self, bank_id, geom_setup_dict, cal_shift_x, cal_shift_y, cal_shif
panel_type_node = self.add_component_type(panel_node_name)

# Add component shift_panel
shift_panel_node = self.add_component(type_name='shiftpanel', idfillbyfirst=None, idstart=None,
idstepbyrow=None, root=panel_type_node)
shift_panel_node = self.add_component(type_name='shiftpanel', idfillbyfirst='x', idstart=start_pixel_id,
idstepbyrow=pixel_column_count, root=panel_type_node)
self.add_location(None, shift_panel_node, panel_loc_dict)

return pixel_row_count * pixel_column_count
Expand Down

0 comments on commit 4779a2e

Please sign in to comment.