From 697ee0e97fc7ece6e5bc7cc8bf3a682dc835ca86 Mon Sep 17 00:00:00 2001 From: Lewin Probst <info@emirror.de> Date: Wed, 11 Dec 2019 14:57:26 +0100 Subject: [PATCH] On loading a soundsource file, the filteredSoundsources variable in workspace gets updated as well. --- VERSION | 2 +- lib/+artoa/+controller/+file/loadSoundSourceFile.m | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b854a29..6d3e9dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -128 \ No newline at end of file +129 \ No newline at end of file diff --git a/lib/+artoa/+controller/+file/loadSoundSourceFile.m b/lib/+artoa/+controller/+file/loadSoundSourceFile.m index 609898a..acff2c9 100644 --- a/lib/+artoa/+controller/+file/loadSoundSourceFile.m +++ b/lib/+artoa/+controller/+file/loadSoundSourceFile.m @@ -1,7 +1,7 @@ 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'; -- GitLab