Skip to content

Commit

Permalink
refactor: removed unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Sep 18, 2024
1 parent 3b908c7 commit bcbe77f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions hnn_core/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,8 @@ def add_drive_widget(self,
drive_box.children += (HTML(value="<p> </p>"), # Adds blank space
delete_button)

if drive_type in [
'Evoked', 'Poisson', 'Rhythmic', 'Bursty', 'Gaussian', 'Tonic'
]:
self.drive_boxes.append(drive_box)
self.drive_widgets.append(drive)
self.drive_boxes.append(drive_box)
self.drive_widgets.append(drive)

if render:
# Construct accordion object
Expand Down

0 comments on commit bcbe77f

Please sign in to comment.