##// 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
More work on new Variable python bindings...
r63 #ifndef SCIQLOP_SPECTROGRAMTIMESERIE_H
#define SCIQLOP_SPECTROGRAMTIMESERIE_H
#include "CoreGlobal.h"
#include <TimeSeries.h>
Updated to fixed TS lib, added spectrogram min/max sampling hints when available...
r85 #include <cmath>
More work on new Variable python bindings...
r63
class SCIQLOP_CORE_EXPORT SpectrogramTimeSerie
: public TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>
{
public:
Updated to fixed TS lib, added spectrogram min/max sampling hints when available...
r85 double min_sampling = std::nan("");
double max_sampling = std::nan("");
Added Y log tag for Spectrograms...
r87 bool y_is_log = true;
New TimeSeries classes mostly usable from Python...
r65 using item_t =
Spectrogram wrapper allow to set values from python...
r66 decltype(std::declval<
TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>()[0]);
using iterator_t = decltype(
std::declval<TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>()
.begin());
More work on new Variable python bindings...
r63 SpectrogramTimeSerie() {}
Mostly working Spectrograms...
r84 SpectrogramTimeSerie(SpectrogramTimeSerie::axis_t&& t,
SpectrogramTimeSerie::axis_t&& y,
Updated TS lib...
r88 SpectrogramTimeSerie::data_t&& values,
Updated to fixed TS lib, added spectrogram min/max sampling hints when available...
r85 std::vector<std::size_t>& shape, double min_sampling,
Added Y log tag for Spectrograms...
r87 double max_sampling, bool y_is_log = true)
Updated to fixed TS lib, added spectrogram min/max sampling hints when available...
r85 : TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>(t, values,
shape),
Added Y log tag for Spectrograms...
r87 min_sampling{min_sampling}, max_sampling{max_sampling}, y_is_log{
y_is_log}
Some work on SpectrogramTS Python wrapper...
r83 {
_axes[1] = y;
}
More work on new Variable python bindings...
r63 ~SpectrogramTimeSerie() = default;
using TimeSerie::TimeSerie;
};
#endif // SCIQLOP_SPECTROGRAMTIMESERIE_H