Back to the main page.

Bug 2343 - warning_once should check time passed as well as stack trace

Status NEW
Reported 2013-10-28 16:23:00 +0100
Modified 2013-10-28 16:26:40 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Eelke Spaak - 2013-10-28 16:23:13 +0100

We discussed some time ago that warning_once should check whether it has been called already during the currently executing highest-level FT function. I think, however, that an additional check on time passed might also still be useful. I often repeatedly execute an FT function in a loop, and now I get annoying warnings (trial definition, inaccuracy time axis, etc.) all the time.


Robert Oostenveld - 2013-10-28 16:26:40 +0100

could you implement a test function inspect_warning_once in fieldtrip/test, with (possibly) some subfunctions that are called from the main function and that test the "once" aspect? The test function is to be called in an interactive MATLAB session to check how often the warnings happen.