Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
6791a226
Commit
6791a226
authored
Nov 25, 2020
by
payno
Browse files
remove warning using "is" instead of "=="
parent
ec0e4ad5
Pipeline
#37835
passed with stages
in 10 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/mock.py
View file @
6791a226
...
...
@@ -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
(
...
...
tomoscan/scanbase.py
View file @
6791a226
...
...
@@ -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
]]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment