Open Garados007 opened 9 months ago
Good idea, but right now IP6 does not support fancy things like CaptureHistoryStart
/CaptureHistory
.
Good idea, but right now IP6 does not support fancy things like
CaptureHistoryStart
/CaptureHistory
.
That's a pity. There was nothing in the Igor documentation about when it was introduced. Maybe keep this in mind and come back when we decide to drop support for Igor 6.
Hmm. I started Igor 6 locally and I run the test code above. Apart from the unicode tree everything was fine:
And its also in the Igor 6 documentation.
Interesting, you are right it is present in IP6. So let's switch to that!
We can use
CaptureHistoryStart()
andCaptureHistory()
to capture all history output between the start of the capture and the current invocation. Igor can maintain multiple history captures at the same time and all we have to do is to remember the reference number returned byCatuptureHistoryStart()
and provide it toCaptureHistory()
. We can callCaptureHistory()
multiple times and can stop a specific capture when there is no longer a need for it.We currently use a single notebook with the specific name
HistoryCarbonCopy
which contains magically all history output including the one there is no use for us (because its the output before the current test suite, test case, ...). We capture at the start and end of all test runs/suites/cases all historic output and create the desired string slices at the end of them.I think we can improve our data collection when we use
CaptureHistoryStart()
andCaptureHistory()
instead and do not rely on hidden magical notebooks.