-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Software freezes in Experiment init if ctsetname is not a pattern and directory exists #474
Comments
Hi Sergey, What I know (but didn't have the time to fix it) is, when you have a directory with some scan_XXXX folders in it. In the constructor the iteration is incremented until the first nonexisting scan_XXXX is found. If there are folders existing with higher values it will crash. |
I make sure |
Hello, basically we have Root dir, then ctsetname, which is supposed to be a pattern (e.g. scan_{<:03}, even scan{} will work in Python3) and then name_fmt which is applied to files. Typically we set the Root dir when change the sample and then, if there are multiple vertical views or time points, the Walker will create scan_001, scan_002, etc automatically (we never ever change name_fmt, although there is an entry for this). What some people can occasionally do is to hardcode the ctsetname - e.g. scan5. And then if this directory already exist init() will simply hang forever without returning anything. |
That is fixed now. |
I will also make the set_iteration smarter and merge. |
Hello,
I understand that it is not how it is supposed to be used but users are users )). If ctsetname is hardcoded and directory exists the software crashes when Experiment init is called, most likely here:
https://github.com/ufo-kit/concert/blob/master/concert/experiments/base.py#L117-L121
Could you intercept exception or something in Concert or should I make a check at higher level?
Cheers,
Serg.
The text was updated successfully, but these errors were encountered: