Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0
0.12.1-rc
2 changes: 1 addition & 1 deletion modcc/solvers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "visitor.hpp"

// normalize row iff system is larger than this
constexpr int normalization_limit = 15;
constexpr int normalization_limit = 5;

// Cnexp solver visitor implementation.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ archs = ["arm64"]
environment = { MACOSX_DEPLOYMENT_TARGET = "14.0" }

[tool.cibuildwheel.linux]
archs = ["x86_64"]
archs = ["x86_64", "arm64"]

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
6 changes: 3 additions & 3 deletions python/example/single_cell_allen.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ def make_cell(base, swc, fit):
)

sns.relplot(data=df, kind="line", x="t/ms", y="U/mV", hue="Simulator", errorbar=None)
plt.scatter(
model.spikes, [-40] * len(model.spikes), color=sns.color_palette()[2], zorder=20
)
spikes = model.spikes[:]
plt.scatter(spikes, [-40] * len(spikes), color=sns.color_palette()[2], zorder=20)
plt.bar(
200,
max(reference) - min(reference),
Expand All @@ -190,3 +189,4 @@ def make_cell(base, swc, fit):
color="0.9",
)
plt.savefig("single_cell_allen_result.pdf")
assert len(spikes) == 4, f"Expected four spikes, got {spikes}"
2 changes: 1 addition & 1 deletion python/single_cell_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class single_cell_model {
}

// Set callback that records spike times.
sim_->set_global_spike_callback(
sim_->set_local_spike_callback(
[this](const std::vector<arb::spike>& spikes) {
for (auto& s: spikes) {
spike_times_.push_back(s.time);
Expand Down
1 change: 1 addition & 0 deletions scripts/run_python_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ runpyex single_cell_model.py
runpyex single_cell_nml.py python/example/morph.nml
runpyex single_cell_recipe.py
runpyex single_cell_stdp.py
runpyex single_cell_allen.py
runpyex single_cell_swc.py python/example/single_cell_detailed.swc
runpyex network_ring.py
# runpyex network_ring_mpi.py # requires MPI
Expand Down
Loading