Commit 6791a226 authored by payno's avatar payno
Browse files

remove warning using "is" instead of "=="

parent ec0e4ad5
Pipeline #37835 passed with stages
in 10 minutes and 47 seconds
......@@ -129,7 +129,7 @@ class _ScanMock:
radius = min(background.shape)
def _compute_radius_to_center(data):
assert data.ndim is 2
assert data.ndim == 2
xcenter = (data.shape[2]) // 2
ycenter = (data.shape[1]) // 2
y, x = numpy.ogrid[: data.shape[0], : data.shape[1]]
......@@ -533,7 +533,7 @@ class MockEDF(_ScanMock):
S1=0.0,
S2=1.0,
):
assert len(shape) is 3
assert len(shape) == 3
f = open(filePath, "w")
f.writelines(
"\n".join(
......
......@@ -414,7 +414,7 @@ class TomoScanBase:
"incoherent data information to retrieve"
"scan extra images angle"
)
elif len(extraImgs) is 3:
elif len(extraImgs) == 3:
res["180(1)"] = ordered_url[extraImgs[0]]
res["90(1)"] = ordered_url[extraImgs[1]]
res["0(1)"] = ordered_url[extraImgs[2]]
......
Markdown is supported
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