Commit 55d29765 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[i310] GUI: fix crash on mixing axes units in "Fit 2D Data" (Closes #310)

Merging branch 'i310'  into 'main'.

See merge request !953
parents 94b9c0eb a94a729f
Pipeline #66893 failed with stage
in 5 minutes and 21 seconds
......@@ -38,7 +38,7 @@ double DiffUtil::meanRelVecDiff(const std::vector<double>& dat, const std::vecto
Datafield* DiffUtil::relativeDifferenceField(const Datafield& dat, const Datafield& ref)
{
ASSERT(dat.hasSameShape(ref));
ASSERT(dat.hasSameSizes(ref));
std::vector<double> out(dat.size());
for (size_t i = 0; i < dat.size(); ++i)
out[i] = Numeric::relativeDifference(dat.valAt(i), ref.valAt(i));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment