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
10b46184
Commit
10b46184
authored
Mar 06, 2020
by
Pierre Paleo
Browse files
Change unit for pixel size to microns
parent
1de0f5fa
Pipeline
#22562
failed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
10b46184
...
...
@@ -480,9 +480,9 @@ class HDF5TomoScan(TomoScanBase):
"""read x and y pixel values"""
with
h5py
.
File
(
self
.
master_file
,
'r'
)
as
h5_file
:
x_pixel_dataset
=
h5_file
[
self
.
_entry
][
self
.
_X_PIXEL_SIZE_PATH
]
_x_pixel_size
=
self
.
_get_value
(
x_pixel_dataset
,
default_unit
=
'm
m
'
)
_x_pixel_size
=
self
.
_get_value
(
x_pixel_dataset
,
default_unit
=
'm
icrometer
'
)
y_pixel_dataset
=
h5_file
[
self
.
_entry
][
self
.
_Y_PIXEL_SIZE_PATH
]
_y_pixel_size
=
self
.
_get_value
(
y_pixel_dataset
,
default_unit
=
'm
m
'
)
_y_pixel_size
=
self
.
_get_value
(
y_pixel_dataset
,
default_unit
=
'm
icrometer
'
)
return
_x_pixel_size
,
_y_pixel_size
def
_get_dim1_dim2
(
self
):
...
...
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