From 087541fe7168eca62ce78073742a84f74e2271a0 Mon Sep 17 00:00:00 2001 From: Rubel Date: Wed, 29 Nov 2023 21:58:26 +0100 Subject: [PATCH] updating nxdl_path to nxdl_f_path. --- pynxtools/dataconverter/writer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pynxtools/dataconverter/writer.py b/pynxtools/dataconverter/writer.py index 381012a6d..81b3045da 100644 --- a/pynxtools/dataconverter/writer.py +++ b/pynxtools/dataconverter/writer.py @@ -178,12 +178,12 @@ class Writer: Args: data (dict): Dictionary containing the data to convert. - nxdl_path (str): Path to the nxdl file to use during conversion. + nxdl_f_path (str): Path to the nxdl file to use during conversion. output_path (str): Path to the output NeXus file. Attributes: data (dict): Dictionary containing the data to convert. - nxdl_path (str): Path to the nxdl file to use during conversion. + nxdl_f_path (str): Path to the nxdl file to use during conversion. output_path (str): Path to the output NeXus file. output_nexus (h5py.File): The h5py file object to manipulate output file. nxdl_data (dict): Stores xml data from given nxdl file to use during conversion. @@ -191,14 +191,14 @@ class Writer: """ def __init__(self, data: dict = None, - nxdl_path: str = None, + nxdl_f_path: str = None, output_path: str = None): """Constructs the necessary objects required by the Writer class.""" self.data = data - self.nxdl_path = nxdl_path + self.nxdl_f_path = nxdl_f_path self.output_path = output_path self.output_nexus = h5py.File(self.output_path, "w") - self.nxdl_data = ET.parse(self.nxdl_path).getroot() + self.nxdl_data = ET.parse(self.nxdl_f_path).getroot() self.nxs_namespace = get_namespace(self.nxdl_data) def __nxdl_to_attrs(self, path: str = '/') -> dict: