We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852e2de commit bc4a7beCopy full SHA for bc4a7be
src/diffpy/morph/morphs/morphsqueeze.py
@@ -121,7 +121,7 @@ def _get_overlapping_regions(self, x):
121
current_region.append(x[i + 1])
122
else:
123
monotomic_regions.append(current_region)
124
- monotomic_signs.append(diffx[i])
+ monotomic_signs.append(numpy.sign(diffx[i]))
125
current_region = [x[i + 1]]
126
127
overlapping_regions_sign = -1 if x[0] < x[-1] else 1
0 commit comments