diff options
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_SEL1.sci | 12 | ||||
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_SEL2.sci | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/macros/FunctionAnnotation/FA_SZ_SEL1.sci b/macros/FunctionAnnotation/FA_SZ_SEL1.sci index 4f52c536..ccafe2d9 100644 --- a/macros/FunctionAnnotation/FA_SZ_SEL1.sci +++ b/macros/FunctionAnnotation/FA_SZ_SEL1.sci @@ -24,15 +24,19 @@ function opout = FA_SZ_SEL1(in1,in2) // ------------------------------
// --- Check input arguments. ---
-// ------------------------------
+// ------------------------------ + +
SCI2CNInArgCheck(argn(2),2,2);
ReportFileName = '';
in2 = string(in2);
-if (in2 == '1')
+if (in2 == '1' | in2 == '""rr""' ) // Where can r become rr ???
opout = '1';
-elseif (in2 == '2')
- opout = in1;
+elseif (in2 == '2' | in2 == '""c""' )
+ opout = in1; + +
else
PrintStringInfo(' ',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Cannot associate the second input argument to a known specifier.',ReportFileName,'both','y');
diff --git a/macros/FunctionAnnotation/FA_SZ_SEL2.sci b/macros/FunctionAnnotation/FA_SZ_SEL2.sci index ebf74282..69b38fd1 100644 --- a/macros/FunctionAnnotation/FA_SZ_SEL2.sci +++ b/macros/FunctionAnnotation/FA_SZ_SEL2.sci @@ -29,9 +29,9 @@ SCI2CNInArgCheck(argn(2),2,2); ReportFileName = '';
in2 = string(in2);
-if (in2 == '1')
+if (in2 == '1'| in2 == '""rr""')
opout = in1;
-elseif (in2 == '2')
+elseif (in2 == '2'| in2 == '""c""')
opout = '1';
else
PrintStringInfo(' ',ReportFileName,'both','y');
|