Skip to content

Commit

Permalink
MIES: Skip instrumentation on some often called functions
Browse files Browse the repository at this point in the history
Close #1840.
  • Loading branch information
t-b committed Feb 7, 2024
1 parent 693a8c9 commit 4dc3c88
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/MIES/MIES_DAEphys_GuiState.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ End
/// @param ctrl control name
/// @param index [optional, default to NaN] Some control entries have multiple
/// entries per headstage/channel/etc.
///
/// UTF_NOINSTRUMENTATION
Function DAG_GetNumericalValue(device, ctrl, [index])
string device, ctrl
variable index
Expand Down
2 changes: 2 additions & 0 deletions Packages/MIES/MIES_GuiUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ Function SetSetVariableLimits(win, Control, low, high, increment)
End

/// @brief Returns the contents of a SetVariable
///
/// UTF_NOINSTRUMENTATION
Function GetSetVariable(win, control)
string win, control

Expand Down
6 changes: 6 additions & 0 deletions Packages/MIES/MIES_Utilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -3342,6 +3342,8 @@ End
/// @param var2 second variable
/// @param tol [optional, defaults to 1e-8] tolerance
/// @param strong_or_weak [optional, defaults to strong] type of condition, can be zero for weak or 1 for strong
///
/// UTF_NOINSTRUMENTATION
Function CheckIfClose(var1, var2, [tol, strong_or_weak])
variable var1, var2, tol, strong_or_weak

Expand Down Expand Up @@ -4181,6 +4183,8 @@ End

/// @brief Normalize the line endings in the given string to either classic Mac OS/Igor Pro EOLs (`\r`)
/// or Unix EOLs (`\n`)
///
/// UTF_NOINSTRUMENTATION
threadsafe Function/S NormalizeToEOL(str, eol)
string str, eol

Expand Down Expand Up @@ -5797,6 +5801,8 @@ threadsafe Function/WAVE RemoveUnusedRows(WAVE wv)
End

/// @brief Check wether `val1` and `val2` are equal or both NaN
///
/// UTF_NOINSTRUMENTATION
threadsafe Function EqualValuesOrBothNaN(variable left, variable right)

return (IsNaN(left) && IsNaN(right)) || (left == right)
Expand Down
6 changes: 6 additions & 0 deletions Packages/MIES/MIES_WaveDataFolderGetters.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ threadsafe Function/S GetDeviceTypePathAsString(deviceType)
End

/// @brief Return a datafolder reference to the device folder
///
/// UTF_NOINSTRUMENTATION
threadsafe Function/DF GetDevicePath(device)
string device
return createDFWithAllParents(GetDevicePathAsString(device))
Expand Down Expand Up @@ -5713,6 +5715,8 @@ End
/// - 15: Internal number stored in control min_AsyncAD__RowNum. The minium value alarm trigger.
/// - 16: Internal number stored in control max_AsyncAD_RowNum. The max value alarm trigger.
/// - 17+: Unique controls
///
/// UTF_NOINSTRUMENTATION
Function/Wave GetDA_EphysGuiStateNum(device)
string device

Expand Down Expand Up @@ -5781,6 +5785,8 @@ End
/// - 8: (Async) Title
/// - 9: (Async) Unit
/// - 10+: Unique controls (SetVariable and PopupMenu only)
///
/// UTF_NOINSTRUMENTATION
Function/Wave GetDA_EphysGuiStateTxT(device)
string device

Expand Down

0 comments on commit 4dc3c88

Please sign in to comment.