Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
f95bd687
Commit
f95bd687
authored
Apr 29, 2021
by
payno
Browse files
[black format]
parent
28cb72cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
f95bd687
...
...
@@ -516,7 +516,7 @@ class HDF5TomoScan(TomoScanBase):
@
property
def
return_projs
(
self
)
->
typing
.
Union
[
None
,
list
]:
""""""
"""
"""
frames
=
self
.
frames
if
frames
:
return_frames
=
list
(
filter
(
lambda
x
:
x
.
is_control
==
True
,
frames
))
...
...
@@ -832,7 +832,7 @@ class HDF5TomoScan(TomoScanBase):
@
property
def
frames
(
self
)
->
typing
.
Union
[
None
,
tuple
]:
"""return tuple of frames. Frames contains
"""
"""return tuple of frames. Frames contains"""
if
self
.
_frames
is
None
:
image_keys
=
self
.
image_key
rotation_angles
=
self
.
rotation_angle
...
...
tomoscan/esrf/test/test_edfscan.py
View file @
f95bd687
...
...
@@ -264,7 +264,7 @@ class TestOriDarksFlats(unittest.TestCase):
class
TestProjections
(
unittest
.
TestCase
):
"""Test that the
"""
"""Test that the"""
def
setUp
(
self
)
->
None
:
self
.
folder
=
tempfile
.
mkdtemp
()
...
...
tomoscan/esrf/test/test_hdf5scan.py
View file @
f95bd687
...
...
@@ -65,7 +65,7 @@ class TestHDF5Scan(HDF5TestBaseClass):
self
.
scan
=
HDF5TomoScan
(
scan
=
self
.
dataset_file
)
def
testGeneral
(
self
):
"""some general on the HDF5Scan
"""
"""some general on the HDF5Scan"""
self
.
assertEqual
(
self
.
scan
.
master_file
,
self
.
dataset_file
)
self
.
assertEqual
(
self
.
scan
.
path
,
os
.
path
.
dirname
(
self
.
dataset_file
))
self
.
assertEqual
(
self
.
scan
.
type
,
"hdf5"
)
...
...
Write
Preview
Markdown
is supported
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