You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Interesting - hadn't considered saving files that quickly :) One possibility would be have it generate the timestamp name - validate whether that exists or not, if it does exist, append msec's and check again until name becomes unique - would probably be preferable not to always append msec so that names don't get too long...
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.
The text was updated successfully, but these errors were encountered: