|
211 | 211 | fprintf('Successfully loaded neuron data from NWB file\n'); |
212 | 212 | end |
213 | 213 | catch ME |
214 | | - warning('Failed to load neuron data from NWB file: %s', ME.message); |
| 214 | + warning(ME.identifier, 'Failed to load neuron data from NWB file: %s', ME.message); |
215 | 215 | end |
216 | 216 | end |
217 | 217 |
|
|
271 | 271 | patch = Methods.Utils.subcube(data_zscored, ... |
272 | 272 | round(sp.mean(i,:)), patch_hsize); |
273 | 273 | sp.color_readout(i,:) = ... |
274 | | - nanmedian(reshape(patch, ... |
275 | | - [numel(patch)/size(patch, 4), size(patch, 4)])); |
| 274 | + median(reshape(patch, ... |
| 275 | + [numel(patch)/size(patch, 4), size(patch, 4)]), ... |
| 276 | + 'omitnan'); |
276 | 277 | end |
277 | 278 | end |
278 | 279 |
|
|
543 | 544 | save(np_file, 'version', 'data', 'info', 'prefs', 'worm', '-v7.3'); |
544 | 545 |
|
545 | 546 | % Try to load neuron data and detection parameters from NWB file |
546 | | - [neurons, mp_params] = DataHandling.NeuroPALImage.loadNeuronDataFromNWB(image_data, worm.body, info.scale); |
| 547 | + [~, ~] = DataHandling.NeuroPALImage.loadNeuronDataFromNWB(image_data, worm.body, info.scale); |
547 | 548 |
|
548 | 549 | % Note: Neuron data is now stored directly in NWB file - no companion ID file created |
549 | 550 | end |
|
787 | 788 | end |
788 | 789 |
|
789 | 790 | catch ME |
790 | | - warning('Could not load neuron annotation data from NWB file: %s', ME.message); |
| 791 | + warning(ME.identifier, 'Could not load neuron annotation data from NWB file: %s', ME.message); |
791 | 792 | fprintf('Stack trace: %s\n', getReport(ME)); |
792 | 793 | neurons = []; |
793 | 794 | end |
|
830 | 831 | end |
831 | 832 |
|
832 | 833 | catch ME |
833 | | - warning('Could not load detection parameters from NWB file: %s', ME.message); |
| 834 | + warning(ME.identifier, 'Could not load detection parameters from NWB file: %s', ME.message); |
834 | 835 | mp_params = []; |
835 | 836 | end |
836 | 837 | end |
|
0 commit comments