diff --git a/benchmarks/engines/busyring/arbor/ring.cpp b/benchmarks/engines/busyring/arbor/ring.cpp index 21a5cf1..a746b24 100644 --- a/benchmarks/engines/busyring/arbor/ring.cpp +++ b/benchmarks/engines/busyring/arbor/ring.cpp @@ -32,7 +32,7 @@ using arb::cell_size_type; using arb::cell_member_type; using arb::cell_kind; using arb::time_type; -using arb::cell_probe_address; +using arb::cell_probe_membrane_voltage; // Writes voltage trace as a json file. void write_trace_json(std::string fname, const arb::trace_data& trace); @@ -127,12 +127,9 @@ class ring_recipe: public arb::recipe { } arb::probe_info get_probe(cell_member_type id) const override { - // Get the appropriate kind for measuring voltage. - cell_probe_address::probe_kind kind = cell_probe_address::membrane_voltage; // Measure at the soma. arb::mlocation loc{0, 0.0}; - - return arb::probe_info{id, kind, cell_probe_address{loc, kind}}; + return arb::probe_info{id, 0, cell_probe_membrane_voltage{loc}}; } private: diff --git a/validation/src/arbor-cable-steadystate/arbor-cable-steadystate.cpp b/validation/src/arbor-cable-steadystate/arbor-cable-steadystate.cpp index 57db949..cd86d90 100644 --- a/validation/src/arbor-cable-steadystate/arbor-cable-steadystate.cpp +++ b/validation/src/arbor-cable-steadystate/arbor-cable-steadystate.cpp @@ -66,7 +66,7 @@ struct rc_cable_recipe: public arb::recipe { probe_info get_probe(cell_member_type id) const override { // n probes, centred over CVs. double pos = probe_x(id.index)/length; - return probe_info{id, 0, cell_probe_address{{0, pos}, cell_probe_address::membrane_voltage}}; + return probe_info{id, 0, cell_probe_membrane_voltage{{0, pos}}}; } util::unique_any get_cell_description(cell_gid_type) const override { @@ -128,7 +128,6 @@ int main(int argc, char** argv) { double t_sample = 0; sim.add_sampler(all_probes, explicit_schedule({t_end-dt}), [&voltage,&t_sample](cell_member_type probe_id, probe_tag, std::size_t n, const sample_record* rec) { - std::cout << "probe_id: " << probe_id.gid << ", " << probe_id.index << std::endl; voltage.at(probe_id.index) = *rec[0].data.as(); t_sample = rec[0].time; }); diff --git a/validation/src/arbor-rallpack1/arbor-rallpack1.cpp b/validation/src/arbor-rallpack1/arbor-rallpack1.cpp index c7e2889..a0a4cf3 100644 --- a/validation/src/arbor-rallpack1/arbor-rallpack1.cpp +++ b/validation/src/arbor-rallpack1/arbor-rallpack1.cpp @@ -66,7 +66,7 @@ struct rc_rallpack1_recipe: public arb::recipe { probe_info get_probe(cell_member_type id) const override { double pos = id.index==0? x0: x1; - return probe_info{id, 0, cell_probe_address{{0, pos}, cell_probe_address::membrane_voltage}}; + return probe_info{id, 0, cell_probe_membrane_voltage{{0, pos}}}; } util::unique_any get_cell_description(cell_gid_type) const override { diff --git a/validation/src/arbor-rc-exp2syn-spike/arbor-rc-exp2syn-spike.cpp b/validation/src/arbor-rc-exp2syn-spike/arbor-rc-exp2syn-spike.cpp index 7ed915d..fd5d2e1 100644 --- a/validation/src/arbor-rc-exp2syn-spike/arbor-rc-exp2syn-spike.cpp +++ b/validation/src/arbor-rc-exp2syn-spike/arbor-rc-exp2syn-spike.cpp @@ -88,7 +88,7 @@ struct rc_exp2syn_spike_recipe: public arb::recipe { } probe_info get_probe(cell_member_type id) const override { - return probe_info{id, 0, cell_probe_address{soma_centre(), cell_probe_address::membrane_voltage}}; + return probe_info{id, 0, cell_probe_membrane_voltage{soma_centre()}}; } std::vector event_generators(cell_gid_type gid) const override { diff --git a/validation/src/arbor-rc-expsyn/arbor-rc-expsyn.cpp b/validation/src/arbor-rc-expsyn/arbor-rc-expsyn.cpp index 24da91f..3d878ce 100644 --- a/validation/src/arbor-rc-expsyn/arbor-rc-expsyn.cpp +++ b/validation/src/arbor-rc-expsyn/arbor-rc-expsyn.cpp @@ -63,7 +63,7 @@ struct rc_expsyn_recipe: public arb::recipe { } probe_info get_probe(cell_member_type id) const override { - return probe_info{id, 0, cell_probe_address{soma_centre(), cell_probe_address::membrane_voltage}}; + return probe_info{id, 0, cell_probe_membrane_voltage{soma_centre()}}; } std::vector event_generators(cell_gid_type) const override {