From 670d43a8c9c3b946c0ecb1208928e4878e7b6f4b Mon Sep 17 00:00:00 2001
From: Lewin Probst <info@emirror.de>
Date: Sat, 20 Jul 2019 12:14:07 +0200
Subject: [PATCH] Renamed soundsource package to soundsources.

---
 +tests/+rfc/save.m                                 | 6 ++----
 +tests/{+soundsource => +soundsources}/load.m      | 2 +-
 ci/runAll.m                                        | 2 +-
 lib/+artoa/+load/{soundsource.m => soundsources.m} | 2 +-
 4 files changed, 5 insertions(+), 7 deletions(-)
 rename +tests/{+soundsource => +soundsources}/load.m (80%)
 rename lib/+artoa/+load/{soundsource.m => soundsources.m} (90%)

diff --git a/+tests/+rfc/save.m b/+tests/+rfc/save.m
index 16dc713..6ffdd78 100644
--- a/+tests/+rfc/save.m
+++ b/+tests/+rfc/save.m
@@ -52,10 +52,8 @@ trajectory.soundSpeedMethod = TRAJ(track).ssmethod;
 trajectory.dopplerCorrection = TRAJ(track).doppler;
 trajectory.velocityMethod = TRAJ(track).vmethod;
 trajectory.status = TRAJ(track).status;
-trajectory.toa = TRAJ(track).toa;
-trajectory.toaDate = TRAJ(track).toa_date;
-trajectory.toaSel = TRAJ(track).toa_sel;
-trajectory.toaIntp = TRAJ(track).toa_intp;
+% The toaData is not required for this test.
+%trajectory.toaData = TRAJ(track).toa;
 trajectory.latitude = TRAJ(track).lat;
 trajectory.longitude = TRAJ(track).lon;
 trajectory.date = TRAJ(track).date;
diff --git a/+tests/+soundsource/load.m b/+tests/+soundsources/load.m
similarity index 80%
rename from +tests/+soundsource/load.m
rename to +tests/+soundsources/load.m
index 5fa5a88..bddd56a 100644
--- a/+tests/+soundsource/load.m
+++ b/+tests/+soundsources/load.m
@@ -6,6 +6,6 @@ function [datafile] = load()
 dataFileName = fullfile(currentDirectory, '..', 'data', 'HAFOS.soso');
 
 
-datafile = artoa.load.soundsource(dataFileName);
+datafile = artoa.load.soundsources(dataFileName);
 
 end
diff --git a/ci/runAll.m b/ci/runAll.m
index c45570c..a9bd14c 100644
--- a/ci/runAll.m
+++ b/ci/runAll.m
@@ -8,7 +8,7 @@ addpath(genpath(fullfile(currentDirectory, '..')));
 testsToRun = { ...
     @tests.rfb.load, ...
     @tests.ric.save, ...
-    @tests.soundsource.load, ...
+    @tests.soundsources.load, ...
     @tests.trj4.save, ...
     @tests.rfc.save, ...
     @tests.data.toaConversion ...
diff --git a/lib/+artoa/+load/soundsource.m b/lib/+artoa/+load/soundsources.m
similarity index 90%
rename from lib/+artoa/+load/soundsource.m
rename to lib/+artoa/+load/soundsources.m
index 5fc328c..e299005 100755
--- a/lib/+artoa/+load/soundsource.m
+++ b/lib/+artoa/+load/soundsources.m
@@ -1,4 +1,4 @@
-function [ soundsource ] = soundsource(pFilename)
+function [ soundsource ] = soundsources(pFilename)
 %RFB Loads a .soso file into memory using the tomlini function.
 %   Creates a struct that contains the sections as properties.
 %
-- 
GitLab