Commit 6ceeca6d authored by Pierre Paleo's avatar Pierre Paleo
Browse files

dataset_analyzer: add is_halftomo property

parent e90cf2bf
...@@ -137,6 +137,14 @@ class DatasetAnalyzer(object): ...@@ -137,6 +137,14 @@ class DatasetAnalyzer(object):
return self._get_rotation_angles() return self._get_rotation_angles()
@property
def is_halftomo(self):
"""
Indicates whether the current dataset was performed with half acquisition.
"""
return self._is_halftomo()
def remove_unused_radios(self): def remove_unused_radios(self):
""" """
Remove "unused" radios. Remove "unused" radios.
...@@ -199,6 +207,10 @@ class EDFDatasetAnalyzer(DatasetAnalyzer): ...@@ -199,6 +207,10 @@ class EDFDatasetAnalyzer(DatasetAnalyzer):
return None return None
def _is_halftomo(self):
return None
class HDF5DatasetAnalyzer(DatasetAnalyzer): class HDF5DatasetAnalyzer(DatasetAnalyzer):
""" """
...@@ -348,6 +360,12 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer): ...@@ -348,6 +360,12 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
return self.dataset_scanner.entry return self.dataset_scanner.entry
def _is_halftomo(self):
try:
is_halftomo = self.dataset_scanner.field_of_view.value.lower() == "half"
except:
is_halftomo = None
return is_halftomo
def analyze_dataset(dataset_path, processes_file=None, extra_options=None, logger=None): def analyze_dataset(dataset_path, processes_file=None, extra_options=None, logger=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