Skip to content
Snippets Groups Projects
Commit efb15673 authored by Chris Smith's avatar Chris Smith
Browse files

Updated BEodfRelaxationTranslator

Updated to new Translator class method requirements
parent 68b0122a
No related branches found
No related tags found
1 merge request!75Cnms dev
......@@ -43,7 +43,7 @@ class BEodfRelaxationTranslator(Translator):
Nothing
"""
(folder_path, basename) = path.split(file_path)
(basename, path_dict) = self.__getFilePaths(file_path)
(basename, path_dict) = self._parse_file_path(file_path)
h5_path = path.join(folder_path,basename+'.h5')
......@@ -267,7 +267,7 @@ class BEodfRelaxationTranslator(Translator):
self.min_resp = np.zeros(shape=(self.ds_main.shape[0]), dtype=np.float32)
# Now read the raw data files:
self.__pixelReadData(path_dict['read_real'],path_dict['read_imag'],parm_dict)
self._read_data(path_dict['read_real'], path_dict['read_imag'], parm_dict)
self.hdf.flush()
generatePlotGroups(self.ds_main, self.hdf, self.mean_resp, folder_path, basename,
......@@ -280,7 +280,7 @@ class BEodfRelaxationTranslator(Translator):
return h5_path
def __pixelReadData(self,real_path, imag_path, parm_dict):
def _read_data(self, real_path, imag_path, parm_dict):
"""
Reads the imaginary and real data files one pixel at a time andwrites to the H5 dataset.
......@@ -362,7 +362,7 @@ class BEodfRelaxationTranslator(Translator):
bin_FFT = np.conjugate(FFT_full[bin_inds]);
return (bin_inds, bin_w, bin_FFT, BE_wave, dc_amp_vec_full)
def __getFilePaths(self,data_filepath):
def _parse_file_path(self, data_filepath):
"""
Returns the basename and a dictionary containing the absolute file paths for the
real and imaginary data files, text and mat parameter files in a dictionary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment