fix: RunningQuality must add ssf, not add beat

This commit is contained in:
2026-03-12 21:28:50 +01:00
parent ee77180994
commit bfb3c99184
4 changed files with 20 additions and 6 deletions

View File

@@ -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);
}