@@ -4960,6 +4960,8 @@ Function/WAVE PSX_Operation(variable jsonId, string jsonPath, string graph)
49604960 variable minFilterOrderSweep, minFilterOrderDeconv
49614961 string parameterPath, id, psxParameters, dataUnit, path, msg
49624962
4963+ SFH_CheckArgumentCount ( jsonId, jsonPath, SF_OP_PSX, 1, maxArgs = 7 )
4964+
49634965 id = SFH_GetArgumentAsText ( jsonID, jsonPath, graph, SF_OP_PSX, 0, checkFunc = IsValidObjectName)
49644966
49654967 WAVE /WAVE psxKernelDataset = SFH_GetArgumentAsWave ( jsonId, jsonPath, graph, SF_OP_PSX, 1, defOp = "psxKernel()" )
@@ -5136,6 +5138,8 @@ Function/WAVE PSX_OperationKernel(variable jsonId, string jsonPath, string graph
51365138 variable riseTau, decayTau, amp, dt, numPoints, numCombos, i , offset, idx
51375139 string parameterPath, key
51385140
5141+ SFH_CheckArgumentCount ( jsonId, jsonPath, SF_OP_PSX_KERNEL, 0, maxArgs = 4 )
5142+
51395143 WAVE /Z/ WAVE selectDataCompArray = SFH_GetArgumentSelect ( jsonID, jsonPath, graph, SF_OP_PSX_KERNEL, 0 )
51405144 SFH_ASSERT ( WaveExists ( selectDataCompArray) , "Could not gather sweep data from select statement" )
51415145
@@ -5325,6 +5329,8 @@ Function/WAVE PSX_OperationStats(variable jsonId, string jsonPath, string graph)
53255329
53265330 string stateAsStr, postProc, id, prop
53275331
5332+ SFH_CheckArgumentCount ( jsonId, jsonPath, SF_OP_PSX_STATS, 4, maxArgs = 5 )
5333+
53285334 id = SFH_GetArgumentAsText ( jsonID, jsonPath, graph, SF_OP_PSX, 0, checkFunc = IsValidObjectName)
53295335
53305336 WAVE /Z/ WAVE selectDataCompArray = SFH_GetArgumentSelect ( jsonID, jsonPath, graph, SF_OP_PSX_STATS, 1 )
0 commit comments