v1.0.0-rc.120 (#27)
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m48s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m22s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 6m47s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m15s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 7m35s
Build Packages / Generate python client (push) Successful in 29s
Build Packages / Build documentation (push) Successful in 47s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 7m47s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m47s
Build Packages / build:rpm (rocky9) (push) Successful in 8m40s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m4s
Build Packages / Unit tests (push) Successful in 1h8m20s
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m48s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m22s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 6m47s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m15s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 7m35s
Build Packages / Generate python client (push) Successful in 29s
Build Packages / Build documentation (push) Successful in 47s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 7m47s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m47s
Build Packages / build:rpm (rocky9) (push) Successful in 8m40s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m4s
Build Packages / Unit tests (push) Successful in 1h8m20s
This is an UNSTABLE release. * jfjoch_broker: Improve performance of binary plot export Reviewed-on: #27 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
This commit was merged in pull request #27.
This commit is contained in:
@@ -51,14 +51,9 @@ int32_t StatusVector::GetActualBinning(int32_t bin_size) const {
|
||||
return bin_size;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::vector<float> StatusVector::ExportArray(float def_value) const {
|
||||
[[nodiscard]] std::vector<float> StatusVector::ExportArray() const {
|
||||
std::unique_lock ul(m);
|
||||
std::vector<float> ret(content.size(), def_value);
|
||||
for (int i = 0; i < content.size(); i++) {
|
||||
if (std::isfinite(content[i]))
|
||||
ret[i] = content[i];
|
||||
}
|
||||
return ret;
|
||||
return content;
|
||||
}
|
||||
|
||||
[[nodiscard]] float StatusVector::Mean() const {
|
||||
@@ -234,9 +229,9 @@ MultiLinePlot StatusMultiVector::GetMeanPlot(int64_t bin_size, float x_start, fl
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::vector<float> StatusMultiVector::ExportArray(const std::string &s, float def_value) const {
|
||||
std::vector<float> StatusMultiVector::ExportArray(const std::string &s) const {
|
||||
auto iter = status.find(s);
|
||||
if (iter == status.end() || !iter->second)
|
||||
return {};
|
||||
return iter->second->ExportArray(def_value);
|
||||
return iter->second->ExportArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user