Hello,
I just came across a problem with how mrTools names time-series files it creates. I wrote an mrLoadRet analysis that separates interleaved frames and writes them to two separate files. The problem arose because the files get written quite fast after one another and some end up being written with the same file name as the preceding one (because the filename is a timestamp in seconds) and overwrites it.
I fixed this in my analysis function by adding a on-second pause between files, but I think there should be a more general fix at a more basic level (for isntance by adding a millisecond timestamp, or by forcing a one-second pause in saveNewTSeries.m?).
I don't have time to do it now, but I can look into it when I get a chance. I just thought I'd share the issue so it doesn't happen to others.
Hello,
I just came across a problem with how mrTools names time-series files it creates. I wrote an mrLoadRet analysis that separates interleaved frames and writes them to two separate files. The problem arose because the files get written quite fast after one another and some end up being written with the same file name as the preceding one (because the filename is a timestamp in seconds) and overwrites it.
I fixed this in my analysis function by adding a on-second pause between files, but I think there should be a more general fix at a more basic level (for isntance by adding a millisecond timestamp, or by forcing a one-second pause in saveNewTSeries.m?).
I don't have time to do it now, but I can look into it when I get a chance. I just thought I'd share the issue so it doesn't happen to others.