Skip to content

Commit

Permalink
refactor: remove layout argument from add_drive_widget method
Browse files Browse the repository at this point in the history
The layout can is specified within the method.
  • Loading branch information
gtdang committed Sep 19, 2024
1 parent d546766 commit 2719b90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hnn_core/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ def _add_drive_button_clicked(b):
return self.add_drive_widget(
self.widget_drive_type_selection.value,
self.widget_location_selection.value,
layout=self.layout['drive_textbox']
)

def _delete_drives_clicked(b):
Expand Down Expand Up @@ -914,7 +913,6 @@ def load_drive_and_connectivity(self):
def add_drive_widget(self,
drive_type,
location,
layout,
prespecified_drive_name=None,
prespecified_drive_data=None,
prespecified_weights_ampa=None,
Expand Down Expand Up @@ -943,7 +941,7 @@ def add_drive_widget(self,

drive, drive_box = _build_drive_objects(
drive_type, name, self.widget_tstop,
layout, style, location,
self.layout['drive_textbox'], style, location,
prespecified_drive_data, prespecified_weights_ampa,
prespecified_weights_nmda, prespecified_delays,
prespecified_n_drive_cells, prespecified_cell_specific
Expand Down Expand Up @@ -1011,7 +1009,6 @@ def add_drive_tab(self, params):
should_render = idx == (len(drive_names) - 1)
self.add_drive_widget(drive_type=specs['type'].capitalize(),
location=specs['location'],
layout=self.layout['drive_textbox'],
prespecified_drive_name=drive_name,
render=should_render,
expand_last_drive=False,
Expand Down

0 comments on commit 2719b90

Please sign in to comment.