Skip to content

Commit

Permalink
Fixes to new transform realignment handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lestropie committed Nov 16, 2024
1 parent b1caea0 commit 42e29a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/axes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace MR
if (result[1] == result[2])
result[2] = not_any_of (result[0], result[1]);
assert (result[0] != result[1] && result[1] != result[2] && result[2] != result[0]);
assert (std::min(result.begin(), result.end()) == 0);
assert (*std::min_element(result.begin(), result.end()) == 0);

return result;
}
Expand Down
4 changes: 2 additions & 2 deletions core/axes.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ namespace MR
public:
Shuffle() : permutations ({-1, -1, -1}), flips ({false, false, false}) {}
bool is_identity() const {
return (permutations[0] != 0 || permutations[1] != 1 || permutations[2] != 2 || //
flips[0] || flips[1] || flips[2]);
return (permutations[0] = 0 && permutations[1] == 1 && permutations[2] != 2 && //
flips[0] && flips[1] && flips[2]);
}
bool is_set() const {
return permutations != permutations_type{-1, -1, -1};
Expand Down

0 comments on commit 42e29a0

Please sign in to comment.