Skip to content

Commit c601e1f

Browse files
committed
Fix copyright notice and flake8 issues
1 parent 7fed97f commit c601e1f

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

testsuite/pytests/sli2py_mpi/test_issue_2119.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
2121

22-
23-
import pandas as pd
2422
import pytest
2523
from mpi_test_wrapper import MPITestAssertEqual
2624

@@ -50,5 +48,5 @@ def test_issue_2119(kind, specs):
5048
nrn = nest.Create("iaf_psc_alpha", n=4, params={"V_m": nest.CreateParameter(kind, specs)})
5149

5250
pd.DataFrame.from_dict(nrn.get(["global_id", "V_m"])).dropna().to_csv(
53-
OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False
54-
) # noqa: F821
51+
OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False # noqa: F821
52+
)

testsuite/pytests/sli2py_mpi/test_issue_281.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# test_issue_2119.py
3+
# test_issue_281.py
44
#
55
# This file is part of NEST.
66
#
@@ -20,8 +20,6 @@
2020
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
2121

2222

23-
import pandas as pd
24-
import pytest
2523
from mpi_test_wrapper import MPITestAssertCompletes
2624

2725

@@ -34,10 +32,10 @@ def test_issue_281():
3432
import nest
3533
import pandas as pd
3634

37-
l = nest.Create("parrot_neuron", positions=nest.spatial.grid(shape=[3, 3]))
35+
layer = nest.Create("parrot_neuron", positions=nest.spatial.grid(shape=[3, 3]))
3836
nest.Connect(
39-
l,
40-
l,
37+
layer,
38+
layer,
4139
{"rule": "fixed_indegree", "indegree": 8, "allow_multapses": False, "allow_autapses": False},
4240
# weights are randomized to check that global RNGs stay in sync
4341
{"weight": nest.random.uniform(min=1, max=2)},

0 commit comments

Comments
 (0)