Skip to content
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

Delete specific simualtion from result folder #55

Closed
matbord opened this issue Sep 3, 2021 · 1 comment
Closed

Delete specific simualtion from result folder #55

matbord opened this issue Sep 3, 2021 · 1 comment

Comments

@matbord
Copy link

matbord commented Sep 3, 2021

Hi,
I would like to delete specific simulations from my results. What is the best way to do it? In the documentation, I saw that there is the method delete_result(result) . If it's correct can I see an example code on how to apply it?

@DvdMgr
Copy link
Member

DvdMgr commented Sep 6, 2021

Yes, you can use delete_result, directly passing to it the result you want to delete! A quick example, in which we delete results that have RngRun value set to 3 from the database:

for result in campaign.db.get_complete_results():
    if result['params']['RngRun'] == 3:
        campaign.db.delete_result(result)

Of course, make sure to backup your results folder before experimenting with this.

@matbord matbord closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants