diff --git a/Analyser/ImagingAnalyser.py b/Analyser/ImagingAnalyser.py index a41b894..c386dd9 100644 --- a/Analyser/ImagingAnalyser.py +++ b/Analyser/ImagingAnalyser.py @@ -386,8 +386,25 @@ class ImageAnalyser(): """ self._fringeRemoval.span = value - def load_fringe_removal_background_from_hdf5(self, img_dir, SequenceName, data, shotNum, group, crop=False, load=False, **kwargs): - folderPath = img_dir + SequenceName + "/" + data + def load_fringe_removal_background_from_hdf5(self, img_dir, SequenceName, date, shotNum, group, crop=False, load=False, **kwargs): + """Load the reference background images from hdf5 files of one single shot. + + :param img_dir: The path of the folder storing data. + :type img_dir: str + :param SequenceName: The name of the sequence + :type SequenceName: str + :param date: The date when the shot was taken in 'YYYY/MM/DD'. + :type date: str + :param shotNum: The number of the shot + :type shotNum: str + :param group: The name of the group storing the imgaes + :type group: str + :param crop: If crop the data, defaults to False + :type crop: bool, optional + :param load: If load the data into RAM, defaults to False + :type load: bool, optional + """ + folderPath = img_dir + SequenceName + "/" + date filePath = folderPath + "/" + shotNum + "/*.h5" dataSet = read_hdf5_file(filePath, group, **kwargs)