diff --git a/hnn_core/hnn_io.py b/hnn_core/hnn_io.py index 1c07beb449..14a7f86924 100644 --- a/hnn_core/hnn_io.py +++ b/hnn_core/hnn_io.py @@ -8,7 +8,6 @@ import json import numpy as np -from h5io import read_hdf5 from collections import OrderedDict from .cell import Cell, Section @@ -453,4 +452,3 @@ def read_network_configuration(fname, read_drives=True): net.delay = net_data['delay'] return net - diff --git a/hnn_core/tests/test_io.py b/hnn_core/tests/test_io.py index 0f8c625728..7de2ed84c3 100644 --- a/hnn_core/tests/test_io.py +++ b/hnn_core/tests/test_io.py @@ -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] @@ -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): @@ -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