##// END OF EJS Templates
Updated TS lib...
jeandet -
r88:4e4ec6844f70
parent child
Show More
@@ -1,1 +1,1
1 Subproject commit 315a61fe6174e66bc0a94c1c91d7b3656649873f
1 Subproject commit 16093a64038da071e4dac879fc3fd2ec9fc21c5d
@@ -24,8 +24,7 public:
24 SpectrogramTimeSerie() {}
24 SpectrogramTimeSerie() {}
25 SpectrogramTimeSerie(SpectrogramTimeSerie::axis_t&& t,
25 SpectrogramTimeSerie(SpectrogramTimeSerie::axis_t&& t,
26 SpectrogramTimeSerie::axis_t&& y,
26 SpectrogramTimeSerie::axis_t&& y,
27 SpectrogramTimeSerie::container_type<
27 SpectrogramTimeSerie::data_t&& values,
28 SpectrogramTimeSerie::raw_value_type>&& values,
29 std::vector<std::size_t>& shape, double min_sampling,
28 std::vector<std::size_t>& shape, double min_sampling,
30 double max_sampling, bool y_is_log = true)
29 double max_sampling, bool y_is_log = true)
31 : TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>(t, values,
30 : TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>(t, values,
@@ -173,8 +173,7 PYBIND11_MODULE(pysciqlopcore, m)
173 .def(py::init([](py::array_t<double> t, py::array_t<double> values) {
173 .def(py::init([](py::array_t<double> t, py::array_t<double> values) {
174 assert(t.size() * 3 == values.size());
174 assert(t.size() * 3 == values.size());
175 VectorTimeSerie::axis_t _t(t.size());
175 VectorTimeSerie::axis_t _t(t.size());
176 VectorTimeSerie::container_type<VectorTimeSerie::raw_value_type>
176 VectorTimeSerie::data_t _values(t.size());
177 _values(t.size());
178 copy_vector(t, values, _t, _values);
177 copy_vector(t, values, _t, _values);
179 return VectorTimeSerie(_t, _values);
178 return VectorTimeSerie(_t, _values);
180 }))
179 }))
@@ -205,9 +204,7 PYBIND11_MODULE(pysciqlopcore, m)
205 assert((t.size() < values.size()) |
204 assert((t.size() < values.size()) |
206 (t.size() == 0)); // TODO check geometry
205 (t.size() == 0)); // TODO check geometry
207 MultiComponentTimeSerie::axis_t _t(t.size());
206 MultiComponentTimeSerie::axis_t _t(t.size());
208 MultiComponentTimeSerie::container_type<
207 MultiComponentTimeSerie::data_t _values(values.size());
209 MultiComponentTimeSerie::raw_value_type>
210 _values(values.size());
211 copy_multicomp(t, values, _t, _values);
208 copy_multicomp(t, values, _t, _values);
212 std::vector<std::size_t> shape;
209 std::vector<std::size_t> shape;
213 shape.push_back(values.shape(0));
210 shape.push_back(values.shape(0));
@@ -241,9 +238,7 PYBIND11_MODULE(pysciqlopcore, m)
241 "Y axis size and data shape are incompatible");
238 "Y axis size and data shape are incompatible");
242 SpectrogramTimeSerie::axis_t _t(t.size());
239 SpectrogramTimeSerie::axis_t _t(t.size());
243 SpectrogramTimeSerie::axis_t _y(y.size());
240 SpectrogramTimeSerie::axis_t _y(y.size());
244 SpectrogramTimeSerie::container_type<
241 SpectrogramTimeSerie::data_t _values(values.size());
245 SpectrogramTimeSerie::raw_value_type>
246 _values(values.size());
247 copy_spectro(t, y, values, _t, _y, _values);
242 copy_spectro(t, y, values, _t, _y, _values);
248 std::vector<std::size_t> shape;
243 std::vector<std::size_t> shape;
249 shape.push_back(values.shape(0));
244 shape.push_back(values.shape(0));
General Comments 0
You need to be logged in to leave comments. Login now