Commit bec23d2b authored by Pierre Paleo's avatar Pierre Paleo Committed by Pierre Paleo
Browse files

Set default detector_tilt in dataset analyzer

parent bdfb774d
...@@ -54,6 +54,7 @@ class DatasetAnalyzer(object): ...@@ -54,6 +54,7 @@ class DatasetAnalyzer(object):
self.processes_file = processes_file self.processes_file = processes_file
self._set_extra_options(extra_options) self._set_extra_options(extra_options)
self._get_excluded_projections() self._get_excluded_projections()
self._set_other_default_dataset_values()
def _set_extra_options(self, extra_options): def _set_extra_options(self, extra_options):
...@@ -102,6 +103,11 @@ class DatasetAnalyzer(object): ...@@ -102,6 +103,11 @@ class DatasetAnalyzer(object):
self.axis_position = None self.axis_position = None
self._radio_dims_notbinned = self.radio_dims self._radio_dims_notbinned = self.radio_dims
def _set_other_default_dataset_values(self):
self._detector_tilt = None
@property @property
def energy(self): def energy(self):
""" """
...@@ -166,6 +172,19 @@ class DatasetAnalyzer(object): ...@@ -166,6 +172,19 @@ class DatasetAnalyzer(object):
return radios_not_used return radios_not_used
@property
def detector_tilt(self):
"""
Return the detector tilt in degrees
"""
return self._detector_tilt
@detector_tilt.setter
def detector_tilt(self, tilt):
self._detector_tilt = tilt
class EDFDatasetAnalyzer(DatasetAnalyzer): class EDFDatasetAnalyzer(DatasetAnalyzer):
""" """
EDF Dataset analyzer for legacy ESRF acquisitions EDF Dataset analyzer for legacy ESRF acquisitions
......
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