diff --git a/code/classes/SCDclass_mdspar.m b/code/classes/SCDclass_mdspar.m index bcf283ae0bf5b5369bfdcc28a96704a4224605f2..e7800264289cb4cef8b488b17043dbf7f1059c72 100644 --- a/code/classes/SCDclass_mdspar.m +++ b/code/classes/SCDclass_mdspar.m @@ -36,7 +36,7 @@ classdef SCDclass_mdspar < matlab.mixin.Heterogeneous unlinked % unlinked parameter, no actualization will be performed (this is set via an empty MDS source path) actualizable % true if after MDS data retrieval phase the parameter is actualizable - overrideshot % =1 if biult with overridden whot number in this case this shot number will be always used during actualization + overrideshot % =1 if instantiated with overridden shot number, in this case this shot number will be always used during actualization overrideshotn % shot number in case of overridden shot number end @@ -107,6 +107,10 @@ classdef SCDclass_mdspar < matlab.mixin.Heterogeneous assert(~~exist('mdsconnect','file'),... 'SCD:NoMDS','mdsconnect not found, are the mds matlab tools installed?') mdsconnect(obj.mdsserver); + % If the class has been declared with a 'shot' parameter, then + % the shotnumber used for param loading is overridden by this + % parameter, otherwise it is taken from the global shot number + % given to the actualize command if obj.overrideshot == 1 localshot = obj.overrideshotn; else