Commit 57d76e0f authored by payno's avatar payno

[resources][dataset_validator] manage case no translations are defined

- define translation in DatasetAnalyzer
parent c05a9bc4
Pipeline #27675 passed with stages
in 2 minutes and 33 seconds
......@@ -41,6 +41,7 @@ class DatasetAnalyzer(object):
self.n_angles = self.dataset_scanner.tomo_n
self.radio_dims = (self.dataset_scanner.dim_1, self.dataset_scanner.dim_2)
self._binning = (1, 1)
self.translations = None
@property
def energy(self):
......
......@@ -119,9 +119,11 @@ class NabuValidator(object):
def _get_translation_file(self):
translations = None
rec_params = self.nabu_config["reconstruction"]
transl_file = rec_params["translation_movements_file"]
if transl_file in (None, ''):
return
translations = None
if transl_file is not None and "://" not in transl_file:
try:
translations = get_values_from_file(
......
Markdown is supported
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