Skip to content

Commit fe20f55

Browse files
committed
More formatting/checks
1 parent 83fc5c1 commit fe20f55

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# All configuration values have a default; values that are commented out
1111
# serve to show the default.
1212

13-
import sys, os
13+
import sys
14+
import os
1415
import opencortex
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,

examples/netpyneLoad.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
# See https://github.com/Neurosim-lab/netpyne
2424

25-
from netpyne import init # import netpyne init module
26-
2725

2826
###############################################################################
2927
# NETWORK PARAMETERS

examples/neuromllite/SimpleNet.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
RectangularRegion,
88
RandomLayout,
99
)
10-
from neuromllite import Projection, RandomConnectivity, Input, Simulation
11-
from neuromllite.NetworkGenerator import generate_and_run
10+
from neuromllite import Input, Simulation
1211
import sys
1312

1413
################################################################################
@@ -75,6 +74,5 @@
7574
### Run in some simulators
7675

7776
from neuromllite.NetworkGenerator import check_to_generate_or_run
78-
import sys
7977

8078
check_to_generate_or_run(sys.argv, sim)

opencortex/build/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def extract_seg_ids(cell_object, target_compartment_array, targeting_mode):
15811581
found_target_groups.append(target_compartment_array[target_group])
15821582
if segment_group_array[segment_group]["segments"] != []:
15831583
for segment in segment_group_array[segment_group]["segments"]:
1584-
if not segment in segment_target_array:
1584+
if segment not in segment_target_array:
15851585
segment_target_array.append(segment)
15861586

15871587
target_segment_array[target_compartment_array[target_group]] = (
@@ -1938,7 +1938,7 @@ def _include_neuroml2_cell(nml_doc, cell_nml2_path, cell_id, channels_also=True)
19381938

19391939
new_file = "%s/%s" % (nml_doc.id, os.path.basename(cell_nml2_path))
19401940

1941-
if not new_file in all_included_files:
1941+
if new_file not in all_included_files:
19421942
nml_doc.includes.append(neuroml.IncludeType(new_file))
19431943
all_included_files.append(new_file)
19441944

@@ -1954,7 +1954,7 @@ def _include_neuroml2_cell(nml_doc, cell_nml2_path, cell_id, channels_also=True)
19541954

19551955
new_file = "%s/%s" % (nml_doc.id, os.path.basename(included.href))
19561956

1957-
if not new_file in all_included_files:
1957+
if new_file not in all_included_files:
19581958
nml_doc.includes.append(neuroml.IncludeType(new_file))
19591959
all_included_files.append(new_file)
19601960

@@ -1987,7 +1987,7 @@ def _add_cell_and_channels(nml_doc, cell_nml2_rel_path, cell_id, use_prototypes=
19871987

19881988
_copy_to_dir_for_model(nml_doc, cell_nml2_path)
19891989
new_file = "%s/%s.cell.nml" % (nml_doc.id, cell_id)
1990-
if not new_file in all_included_files:
1990+
if new_file not in all_included_files:
19911991
nml_doc.includes.append(neuroml.IncludeType(new_file))
19921992
all_included_files.append(new_file)
19931993

@@ -2017,7 +2017,7 @@ def _add_cell_and_channels(nml_doc, cell_nml2_rel_path, cell_id, use_prototypes=
20172017
_copy_to_dir_for_model(nml_doc, old_loc)
20182018
new_loc = "%s/%s" % (nml_doc.id, channel_file)
20192019

2020-
if not new_loc in all_included_files:
2020+
if new_loc not in all_included_files:
20212021
nml_doc.includes.append(neuroml.IncludeType(new_loc))
20222022
all_included_files.append(new_loc)
20232023

opencortex/test/test_build_methods.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import opencortex.utils as oc_utils
1313
import neuroml
1414
import numpy as np
15-
import os
1615

1716
import random
1817

opencortex/test/test_utils_methods.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import opencortex.utils as oc_utils
1414
import neuroml
1515
import numpy as np
16-
import os
1716
import math
1817

1918
try:

0 commit comments

Comments
 (0)