Skip to content

Commit

Permalink
MAINT: Refactor _is_simulation helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 authored and ntolley committed Jul 30, 2024
1 parent a10fd19 commit a1c94ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,4 @@ def _simulate_edit_figure(self, fig_name, ax_name, simulation_name,

def _is_simulation(data):
"""Determines if saved data is a simulation."""
if data['net'] is not None:
return True
return False
return data['net'] is not None

0 comments on commit a1c94ee

Please sign in to comment.