Skip to content

Commit

Permalink
refactor: flake8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed May 3, 2024
1 parent e63fa32 commit 7884726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions hnn_core/hnn_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import json
import numpy as np

from h5io import read_hdf5
from collections import OrderedDict

from .cell import Cell, Section
Expand Down Expand Up @@ -453,4 +452,3 @@ def read_network_configuration(fname, read_drives=True):
net.delay = net_data['delay']

return net

10 changes: 7 additions & 3 deletions hnn_core/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

from hnn_core.hnn_io import (_cell_response_to_dict, _rec_array_to_dict,
_external_drive_to_dict, _str_to_node,
_conn_to_dict, _order_drives, read_network_configuration
_conn_to_dict, _order_drives,
read_network_configuration
)

hnn_core_root = Path(__file__).parents[1]
Expand Down Expand Up @@ -90,7 +91,8 @@ def generate_test_files(jones_2009_network):
net = jones_2009_network
net.write_configuration(Path('.', 'assets/jones2009_3x3_drives.json'))
simulate_dipole(net, tstop=2, n_trials=1, dt=0.5)
net.write_configuration(Path('.', 'assets/jones2009_3x3_drives_simulated.json'))
net.write_configuration(Path('.',
'assets/jones2009_3x3_drives_simulated.json'))


def test_eq(jones_2009_network, calcium_network):
Expand Down Expand Up @@ -308,7 +310,9 @@ def test_order_drives(jones_2009_network):

def test_read_configuration_json(jones_2009_network):
""" Read-in of a hdf5 file """
net = read_network_configuration(Path(assets_path, 'jones2009_3x3_drives.json'))
net = read_network_configuration(Path(assets_path,
'jones2009_3x3_drives.json')
)
assert net == jones_2009_network


Expand Down

0 comments on commit 7884726

Please sign in to comment.