Skip to content
Snippets Groups Projects
Commit 697ee0e9 authored by leprob001's avatar leprob001
Browse files

On loading a soundsource file, the filteredSoundsources variable in workspace gets updated as well.

parent 66127fa4
No related branches found
No related tags found
No related merge requests found
128
\ No newline at end of file
129
\ No newline at end of file
function [] = loadSoundSourceFile(~, ~)
%LOADSOUNDSOURCEFILE Creates a file selection dialog and reads the file into memory.
global artoaGui artoaDataInput;
global artoaGui artoaDataInput artoaWorkspace;
%% Initialize variables
artoaDataInput.soundsources = false;
......@@ -27,6 +27,11 @@ end
%% Load file into memory
artoaDataInput.soundsources = artoa.load.soundsources(filepath);
%% GET SOUNDSOURCES THAT ARE ALIVE DURING THE FLOAT MISSION
artoaWorkspace.filteredSoundsources = artoa.soundsources.filter( ...
artoaDataInput.soundsources, min(artoaWorkspace.rafosDate), max(artoaWorkspace.rafosDate) ...
);
%% Update menu buttons
if ~islogical(artoaDataInput.soundsources)
artoaGui.main.menus.edit.Enable = 'on';
......
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