Skip to content
GitLab
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
f5d0938f
Commit
f5d0938f
authored
Mar 02, 2020
by
payno
Browse files
hdf5scan move get_valid_entries to public
parent
74591f8e
Pipeline
#22270
failed with stages
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
f5d0938f
...
...
@@ -197,14 +197,14 @@ class HDF5TomoScan(TomoScanBase):
:param file_path:
:return:
"""
entries
=
HDF5TomoScan
.
_
get_valid_entries
(
file_path
)
entries
=
HDF5TomoScan
.
get_valid_entries
(
file_path
)
if
len
(
entries
)
==
0
:
return
None
else
:
return
entries
[
index
]
@
staticmethod
def
_
get_valid_entries
(
file_path
:
str
)
->
tuple
:
def
get_valid_entries
(
file_path
:
str
)
->
tuple
:
"""
return the list of 'Nxtomo' entries at the root level
...
...
@@ -252,7 +252,7 @@ class HDF5TomoScan(TomoScanBase):
else
:
master_file
=
HDF5TomoScan
.
get_master_file
(
scan_path
=
directory
)
if
master_file
:
entries
=
HDF5TomoScan
.
_
get_valid_entries
(
file_path
=
master_file
)
entries
=
HDF5TomoScan
.
get_valid_entries
(
file_path
=
master_file
)
return
len
(
entries
)
>
0
@
docstring
(
TomoScanBase
.
is_abort
)
...
...
tomoscan/scanfactory.py
View file @
f5d0938f
...
...
@@ -72,7 +72,7 @@ class ScanFactory:
elif
HDF5TomoScan
.
is_tomoscan_dir
(
scan_path
):
scans
=
[]
master_file
=
HDF5TomoScan
.
get_master_file
(
scan_path
=
scan_path
)
entries
=
HDF5TomoScan
.
_
get_valid_entries
(
master_file
)
entries
=
HDF5TomoScan
.
get_valid_entries
(
master_file
)
for
entry
in
entries
:
scans
.
append
(
HDF5TomoScan
(
scan
=
scan_path
,
entry
=
entry
,
index
=
None
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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