Commit 5f840528 authored by payno's avatar payno
Browse files

[EDFTomoScan] move get_pixel_size to private. User should use pixel_size instead

parent 900ce538
......@@ -116,7 +116,7 @@ class EDFTomoScan(TomoScanBase):
:rtype: float
"""
if self.__pixel_size is None:
self.__pixel_size = EDFTomoScan.get_pixel_size(scan=self.path)
self.__pixel_size = EDFTomoScan._get_pixel_size(scan=self.path)
return self.__pixel_size
@property
......@@ -391,7 +391,7 @@ class EDFTomoScan(TomoScanBase):
return d1, d2
@staticmethod
def get_pixel_size(scan: str) -> Union[None, int]:
def _get_pixel_size(scan: str) -> Union[None, int]:
if os.path.isdir(scan) is False:
return None
value = EDFTomoScan.retrieve_information(scan=scan,
......@@ -411,7 +411,7 @@ class EDFTomoScan(TomoScanBase):
# for now pixel size are stored in microns.
# We want to return them in meter
if value is not None:
return value * metricsystem.micrometer
return value * MetricSystem.MICROMETER
else:
return None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment