fix floating point rounding mismatch causing flats to be missed for clearing
This commit is contained in:
parent
67dd438c26
commit
2351ddca56
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@
|
|||
indices.shift();
|
||||
if (op.flats) {
|
||||
let flats = Object.keys(slicer.zFlat)
|
||||
.map(v => parseFloat(v).round(4))
|
||||
.map(v => parseFloat(v).round(5))
|
||||
.filter(v => v >= zBottom);
|
||||
flats.forEach(v => {
|
||||
if (!indices.contains(v)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue