Commit 129af53d authored by emerit's avatar emerit
Browse files

revert to c44545cd

parent fb4b4fb5
Loading
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -80,9 +80,6 @@ classdef data_SOFA < handle

        function obj = get_hrf_itd(obj)
            % Load the SOFA file
            if verLessThan('matlab', '10.0')
                meas = NETCDFload(fullfile(obj.info.folderNameOnset,'..',obj.info.fileNameHrf),'all');
            else
            netcdf.inqLibVers;
            sf = py.sofar.read_sofa(fullfile(obj.info.folderNameOnset,'..',obj.info.fileNameHrf));
            meas.ListenerPosition = double(py.array.array('d', py.numpy.nditer(sf.ListenerPosition)));
@@ -95,7 +92,6 @@ classdef data_SOFA < handle
            dim = double(py.array.array('d', sf.Data_IR.shape));
            data = double(py.array.array('d', py.numpy.nditer(sf.Data_IR))); 
            meas.Data.IR = permute(reshape(data,fliplr(dim)), [3 2 1]);
            end
            
            obj.info.listenerPosition = meas.ListenerPosition;
            obj.info.listenerView = meas.ListenerView;