Commit 4b422152 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

NXFlatField: get same default entry as input dataset

parent 02b13dd4
Pipeline #33913 failed with stages
in 2 minutes and 17 seconds
......@@ -240,13 +240,14 @@ class NXFlatField:
where each reduced_array is a numpy array.
entry: str, optional
HDF5 entry name.
HDF5 entry name. If not provided, the same entry as input dataset is taken.
process_name: str, optional
Process name. Default is "flat_field_images".
tmp_fallback: bool, optional
Whether to write to /tmp if writing fails. Default is True.
"""
if entry is None:
entry = [x for x in self.data_url.data_path().split("/") if len(x) > 0][0]
results_file = self.results_file
if results_file is None and not(tmp_fallback):
raise ValueError("Please provide results_file and/or dont_write_results=False")
......
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