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
8bbd429c
Commit
8bbd429c
authored
Nov 06, 2020
by
Pierre Paleo
Browse files
[edfscan] Fix typos in test_edfscan
parent
894c67d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/test/test_edfscan.py
View file @
8bbd429c
...
...
@@ -602,7 +602,7 @@ class TestScanBaseJSON(unittest.TestCase):
class
TestIgnoredProjections
(
unittest
.
TestCase
):
"""Test th
at the
"""
"""Test th
e ignore_projections parameter
"""
def
setUp
(
self
)
->
None
:
self
.
folder
=
tempfile
.
mkdtemp
()
...
...
@@ -618,7 +618,7 @@ class TestIgnoredProjections(unittest.TestCase):
def
tearDown
(
self
)
->
None
:
shutil
.
rmtree
(
self
.
folder
)
def
testProjection
NoExtra
(
self
):
def
test
Ignore
Projection
s
(
self
):
mock
=
MockEDF
(
scan_path
=
self
.
folder
,
n_radio
=
15
,
n_ini_radio
=
10
,
n_extra_radio
=
0
,
dim
=
10
)
...
...
@@ -626,7 +626,6 @@ class TestIgnoredProjections(unittest.TestCase):
scan
=
EDFTomoScan
(
scan
=
self
.
folder
,
ignore_projections
=
self
.
ignored_projs_fname
)
print
(
scan
.
projections
)
self
.
assertTrue
(
numpy
.
allclose
(
scan
.
_ignored_projections
,
self
.
ignored_projs
))
for
idx
in
self
.
ignored_projs
:
self
.
assertFalse
(
...
...
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