Skip to content

Commit

Permalink
Sync to arbor master 0.6rc. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater authored Apr 6, 2022
1 parent 67e3f03 commit 452c325
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 3rd-party/arbor
Submodule arbor updated 301 files
9 changes: 5 additions & 4 deletions src/gui_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ namespace {
for(const auto& [k, v]: item.parameters) {
mech.set(k, v);
}
decor.paint(rg.data.value(), mech);
decor.paint(rg.data.value(), arb::density{mech});
}
}
return {state.builder.morph, state.builder.labels, decor};
Expand Down Expand Up @@ -1062,8 +1062,8 @@ void gui_state::deserialize(const std::filesystem::path& fn) {
data.tag = tag;
for (const auto& [k, v]: t.envelope) data.envelope.emplace_back(k, v);
}
void operator()(const arb::mechanism_desc& t) { log_error("Cannot handle mech."); }
void operator()(const arb::gap_junction_site& t) { log_error("Cannot handle GJ."); }
void operator()(const arb::synapse& t) { log_error("Cannot handle synapse mech."); }
void operator()(const arb::junction& t) { log_error("Cannot handle GJ."); }
};

struct rg_visitor {
Expand Down Expand Up @@ -1104,7 +1104,8 @@ void gui_state::deserialize(const std::filesystem::path& fn) {
if (ion == state->ions.end()) log_error("Unknown ion");
state->ion_par_defs[{region, *ion}].Er = t.value;
}
void operator()(const arb::mechanism_desc& t) {
void operator()(const arb::density& d) {
const auto& t = d.mech;
auto id = state->mechanisms.add(region);
auto& data = state->mechanisms[id];
auto cat = t.name();
Expand Down

0 comments on commit 452c325

Please sign in to comment.