Commit 666d558d authored by Pierre Paleo's avatar Pierre Paleo
Browse files

nxflatfield: HDF5 process name is now flat_field_images

parent 3a8d1037
Pipeline #33859 passed with stages
in 4 minutes and 48 seconds
......@@ -207,7 +207,7 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
if processes_file is None:
processes_file = os.path.join(self.dataset_scanner.path, "nabu_processes.h5")
lookup_files = [
DataUrl(file_path=processes_file, data_path="/entry/flat_field")
DataUrl(file_path=processes_file, data_path="/entry/flat_field_images")
]
self._nxflatfield = NXFlatField(
self._get_dataset_hdf5_url(),
......@@ -217,7 +217,9 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
flats_reduction="mean",
darks_reduction="mean"
)
res = self._nxflatfield.get_final_urls(entry="entry", process_name="flat_field")
res = self._nxflatfield.get_final_urls(
entry="entry", process_name="flat_field_images"
)
self.flats = res["flats"]
self.darks = res["darks"]
......
......@@ -187,7 +187,7 @@ class NXFlatField:
}
def write_results(self, flats_and_darks, entry=None, process_name="flat_field", tmp_fallback=True):
def write_results(self, flats_and_darks, entry=None, process_name="flat_field_images", tmp_fallback=True):
"""
Write the results in a HDF5 file.
......@@ -278,7 +278,7 @@ class NXFlatField:
return res
def get_final_urls(self, entry="entry", process_name="flat_field"):
def get_final_urls(self, entry="entry", process_name="flat_field_images"):
res = self.get_final_images(dont_write_results=False)
results_file = self._loaded_from or self.results_file
if self.results_file is 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