Skip to content

Commit e56fea5

Browse files
committed
ninja format-pr
1 parent b764dbb commit e56fea5

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

bin/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if(NRN_ENABLE_CORENEURON)
100100
endif()
101101

102102
install(FILES ${PROJECT_BINARY_DIR}/bin/nrnmech_makefile DESTINATION ${NRN_INSTALL_DATA_PREFIX}bin)
103-
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/sortspike ${CMAKE_CURRENT_BINARY_DIR}/rdcellstate
104-
${CMAKE_CURRENT_SOURCE_DIR}/mkthreadsafe ${PROJECT_BINARY_DIR}/bin/nrnpyenv.sh
105-
${CMAKE_CURRENT_SOURCE_DIR}/set_nrnpyenv.sh
106-
DESTINATION ${NRN_INSTALL_DATA_PREFIX}bin)
103+
install(
104+
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/sortspike ${CMAKE_CURRENT_BINARY_DIR}/rdcellstate
105+
${CMAKE_CURRENT_SOURCE_DIR}/mkthreadsafe ${PROJECT_BINARY_DIR}/bin/nrnpyenv.sh
106+
${CMAKE_CURRENT_SOURCE_DIR}/set_nrnpyenv.sh DESTINATION ${NRN_INSTALL_DATA_PREFIX}bin)

share/lib/python/neuron/debug/rdcellstate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ def compare_numeric_maps(
370370
diffs: List[Diff] = []
371371
all_keys = set(a_map) | set(b_map)
372372
for key in sorted(all_keys):
373-
if should_ignore_key(key, ignore_ion, ignore_matrix, ignore_names, unused_fields):
373+
if should_ignore_key(
374+
key, ignore_ion, ignore_matrix, ignore_names, unused_fields
375+
):
374376
continue
375377
in_a = key in a_map
376378
in_b = key in b_map

test/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ if(NRN_ENABLE_PYTHON)
224224
nrn_add_test(
225225
GROUP unit_tests
226226
NAME python_unit_tests_debug_rdcellstate
227-
COMMAND ${NRN_DEFAULT_PYTHON_EXECUTABLE} ${pytest}
228-
${PROJECT_SOURCE_DIR}/test/unit_tests/debug
227+
COMMAND ${NRN_DEFAULT_PYTHON_EXECUTABLE} ${pytest} ${PROJECT_SOURCE_DIR}/test/unit_tests/debug
229228
PRELOAD_SANITIZER
230229
SCRIPT_PATTERNS "test/unit_tests/debug/*.py" "test/unit_tests/debug/fixtures/*")
231230

test/unit_tests/debug/test_rdcellstate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def test_missing_mech_key():
8181
)
8282
missing = [d for d in diffs if not math.isfinite(d.abs_diff)]
8383
assert any(d.key[0] == "mech" for d in missing)
84-
assert rd.main([str(_FIX / "ref_ab.nrndat"), str(_FIX / "mech_missing.nrndat")]) == 1
84+
assert (
85+
rd.main([str(_FIX / "ref_ab.nrndat"), str(_FIX / "mech_missing.nrndat")]) == 1
86+
)
8587

8688

8789
def test_ignore_matrix_hides_format_asymmetry():
@@ -97,7 +99,9 @@ def test_ignore_matrix_hides_format_asymmetry():
9799
matrix_missing = [
98100
d
99101
for d in full
100-
if d.key[0] == "matrix" and d.key[2] in ("d", "rhs") and not math.isfinite(d.abs_diff)
102+
if d.key[0] == "matrix"
103+
and d.key[2] in ("d", "rhs")
104+
and not math.isfinite(d.abs_diff)
101105
]
102106
assert matrix_missing
103107
ignored = rd.compare_numeric_maps(

0 commit comments

Comments
 (0)