##// END OF EJS Templates
Some refac for new PySide2 bindings...
Some refac for new PySide2 bindings - made DataSourceItem iterable - added some tree print function for debug - fixed minor bug on DataSourceContorller which prevented from adding products in more than one call per provider - improved IDataProvider for future refac Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r88:4e4ec6844f70
r92:9ff5f48e3d71
Show More
SpectrogramTimeSerie.h
42 lines | 1.4 KiB | text/x-c | CLexer
/ include / Data / SpectrogramTimeSerie.h
#ifndef SCIQLOP_SPECTROGRAMTIMESERIE_H
#define SCIQLOP_SPECTROGRAMTIMESERIE_H
#include "CoreGlobal.h"
#include <TimeSeries.h>
#include <cmath>
class SCIQLOP_CORE_EXPORT SpectrogramTimeSerie
: public TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>
{
public:
double min_sampling = std::nan("");
double max_sampling = std::nan("");
bool y_is_log = true;
using item_t =
decltype(std::declval<
TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>()[0]);
using iterator_t = decltype(
std::declval<TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>()
.begin());
SpectrogramTimeSerie() {}
SpectrogramTimeSerie(SpectrogramTimeSerie::axis_t&& t,
SpectrogramTimeSerie::axis_t&& y,
SpectrogramTimeSerie::data_t&& values,
std::vector<std::size_t>& shape, double min_sampling,
double max_sampling, bool y_is_log = true)
: TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>(t, values,
shape),
min_sampling{min_sampling}, max_sampling{max_sampling}, y_is_log{
y_is_log}
{
_axes[1] = y;
}
~SpectrogramTimeSerie() = default;
using TimeSerie::TimeSerie;
};
#endif // SCIQLOP_SPECTROGRAMTIMESERIE_H