-
Notifications
You must be signed in to change notification settings - Fork 15
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
Project removal is buggy (?) #930
Comments
Both snippets should be strictly equivalent in terms of python, so I'd be very confused it's this difference that leaves the directory. The project directory is not removed when there's still (non-pyiron) files inside. Could that be the cause? |
Actually, this behaviour appears to be not related to the syntax so it's actually a pyiron-side problem. I haven't touched anything terminal-side. Calling
I found this when investigating: and all these folders contain only calculations that error'd out once it was attempted to be executed on the cluster (i.e. errors in error.out appear). I note that all of these jobs failed. So the You can work around this by removing the folders manually with
to remove the database entries. Still somewhat annoying. |
Actually, thinking more about it, I am not clear on if this behaviour will exist if there's even a single failed calculation present in the folder structure. I can imagine that this behaviour is also occurring in that case, and that makes this error even more problematic. |
Sometimes this command deletes the folder, sometimes it doesn't.
Project("Pdash-Sdash-jdash").remove(enable=True)
This sometimes leaves a directory.
On the other hand, assigning the project to a variable :
always succeeds with clean removal.
Idk if this weirdness is a quirk of python's or something weird with pyiron.
The text was updated successfully, but these errors were encountered: