Skip to content
Snippets Groups Projects
Commit 3bdc5578 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

asarray --> ListScan

parent 7153d22e
No related branches found
No related tags found
2 merge requests!1847rebase on latest r21,!1826Fix exporting ListScan to Python
Pipeline #107724 passed
......@@ -97,7 +97,7 @@ std::string Py::Fmt2::printAxis(const Scale* a, const std::string& unit)
<< ", " << Py::Fmt::printValue(a->min(), unit) << ", "
<< Py::Fmt::printValue(a->max(), unit) << ")";
else if (a->isScan()) {
result << "numpy.asarray([";
result << "ba.ListScan(" << Py::Fmt::printString(a->axisName()) << ", [";
const std::vector<double>& points = a->binCenters();
for (auto iter = points.begin(); iter != points.end() - 1; ++iter)
result << Py::Fmt::printValue(*iter, unit) << ",";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment