fix: RunningQuality must add ssf, not add beat
This commit is contained in:
@@ -81,10 +81,11 @@ TEST(SignalTest, ranges) {
|
||||
class DebugRunningQuality : public RunningQuality {
|
||||
protected:
|
||||
virtual void dispatchLocked() { locked = true; }
|
||||
virtual void dispatchBeat(int idx, bool good, double posCorr) { corrs.push_back(posCorr); }
|
||||
virtual void dispatchBeat(int idx, bool good, double posCorr) { goods.push_back(good); corrs.push_back(posCorr); }
|
||||
|
||||
bool locked;
|
||||
std::vector<double> corrs;
|
||||
std::vector<bool> goods;
|
||||
|
||||
public:
|
||||
DebugRunningQuality(): locked(false) {}
|
||||
@@ -92,6 +93,7 @@ public:
|
||||
virtual ~DebugRunningQuality() {}
|
||||
bool isLocked() { return locked; }
|
||||
std::vector<double> getCorrs() { return corrs; }
|
||||
std::vector<bool> getGoods() { return goods; }
|
||||
std::vector<double> getBeatTemplate() { return this->beatTemplate; }
|
||||
};
|
||||
|
||||
@@ -210,4 +212,7 @@ TEST(SignalTest, RunningQuality_t2) {
|
||||
|
||||
std::vector<double> corrs(sqi.getCorrs());
|
||||
npy_save("test3/ssf_t3_sqi_corrs.npy", corrs);
|
||||
|
||||
std::vector<bool> goods(sqi.getGoods());
|
||||
npy_save("test3/ssf_t3_sqi_goods.npy", goods);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user