From 5addaaf35a822311e161d6d6a8c058f8775b9b5c Mon Sep 17 00:00:00 2001
From: Thomas Lambert <t.lambert@uliege.be>
Date: Thu, 25 May 2023 15:12:19 +0200
Subject: [PATCH] chore(config): deprecate Save options

---
 src/configs/caradonna1981.m        | 3 ---
 src/configs/knight1937.m           | 3 ---
 src/configs/template.m             | 7 ++-----
 src/utils/preproc/validateconfig.m | 3 ---
 4 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/configs/caradonna1981.m b/src/configs/caradonna1981.m
index cdc0bd4..d05c352 100644
--- a/src/configs/caradonna1981.m
+++ b/src/configs/caradonna1981.m
@@ -28,9 +28,6 @@ Sim.Save.autosave    = true;       % Auto-save the simulation results in a mat f
 Sim.Save.overwrite   = true;       % Overwrite previous result if filename is the same
 Sim.Save.dir         = '../results/';  % Directory where the results are saved
 Sim.Save.filename    = 'caradonna';  % File name of the saved result
-Sim.Save.appendInfo  = true;        % Auto append config information to filename
-Sim.Save.prependTime = false;       % Add the time code before the filename
-Sim.Save.timeFormat = 'YYYYmmddTHHMM'; % Format for the time code
 
 % Outputs
 Sim.Out.showPlots = false;  % Show all plots (forces, angles, speed, ...)
diff --git a/src/configs/knight1937.m b/src/configs/knight1937.m
index 5cfac8e..d28fce5 100644
--- a/src/configs/knight1937.m
+++ b/src/configs/knight1937.m
@@ -23,9 +23,6 @@ Sim.Save.autosave    = true;       % Auto-save the simulation results in a mat f
 Sim.Save.overwrite   = true;       % Overwrite previous result if filename is the same
 Sim.Save.dir         = '../results/';  % Directory where the results are saved
 Sim.Save.filename    = 'knight2';  % File name of the saved result
-Sim.Save.appendInfo  = true;        % Auto append config information to filename
-Sim.Save.prependTime = false;       % Add the time code before the filename
-Sim.Save.timeFormat = 'YYYYmmddTHHMM'; % Format for the time code
 
 % Outputs
 Sim.Out.showPlots = false;  % Show all plots (forces, angles, speed, ...)
diff --git a/src/configs/template.m b/src/configs/template.m
index 2d301ec..9931bb7 100644
--- a/src/configs/template.m
+++ b/src/configs/template.m
@@ -56,13 +56,10 @@
 % ==================================================================================================
 
 % Autosave
-Sim.Save.autosave    = false;       % Auto-save the simulation results in a mat file
+Sim.Save.autosave    = true;       % Auto-save the simulation results in a mat file
 Sim.Save.overwrite   = false;       % Overwrite previous result if filename is the same
 Sim.Save.dir         = '../results/';  % Directory where the results are saved
-Sim.Save.filename    = 'tempalteRes';  % File name of the saved result
-Sim.Save.appendInfo  = true;        % Auto append config information to filename
-Sim.Save.prependTime = false;       % Add the time code before the filename
-Sim.Save.timeFormat = 'YYYYmmddTHHMM'; % Format for the time code
+Sim.Save.filename    = 'tempalte';  % File name of the saved result
 
 % Outputs
 Sim.Out.showPlots = true;  % Show all plots (forces, angles, speed, ...)
diff --git a/src/utils/preproc/validateconfig.m b/src/utils/preproc/validateconfig.m
index 386a613..4869634 100644
--- a/src/utils/preproc/validateconfig.m
+++ b/src/utils/preproc/validateconfig.m
@@ -147,9 +147,6 @@ function Sim = checksim(Sim, configFile, DEF)
         end
     end
 
-    vallogical(Sim.Save.appendInfo, configFile, 'Sim.Save.appendInfo');
-    vallogical(Sim.Save.prependTime, configFile, 'Sim.Save.prependTime');
-
     % Outputs
     vallogical(Sim.Out.showPlots, configFile, 'Sim.Out.showPlots');
     vallogical(Sim.Out.show3D, configFile, 'Sim.Out.show3D');
-- 
GitLab