Skip to content

Commit

Permalink
Try #1799:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Jan 17, 2022
2 parents 86b1eb0 + 351b080 commit fa14fc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/cells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,13 @@ void register_cells(pybind11::module& m) {
"The group of spike detectors has the label 'label', used for forming connections between cells.")
.def("discretization",
[](arb::decor& dec, const arb::cv_policy& p) { dec.set_default(p); },
pybind11::arg_v("policy", "A cv_policy used to discretise the cell into compartments for simulation"));
pybind11::arg_v("policy", "A cv_policy used to discretise the cell into compartments for simulation"))
.def("discretization",
[](arb::decor& dec, const std::string& p) {
dec.set_default(arborio::parse_cv_policy_expression(p).unwrap());
},
pybind11::arg_v("policy", "An s-expression string representing a cv_policy used to discretise the "
"cell into compartments for simulation"));

// arb::cable_cell

Expand Down

0 comments on commit fa14fc7

Please sign in to comment.