-
Notifications
You must be signed in to change notification settings - Fork 23
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
Improves folder's names on multiple coformers runs #68
Conversation
…I think that it is safer this way as it doesn't depend on alphabetical order.
|
@MilitaoLucas I like the idea, but this doesn't change the script's behaviour for me. Once it enters the loop in l:345 the list doesn't get updated even if I add extra coformer files. |
Oh, I think I expressed myself badly. The list isn't exactly supposed to increase at the run. The loop could verify if there are additional runs at each interaction and add it to the list. It would be better this way. I kind of focused on my use case and was not generic enough. |
Got it. Is the idea that you re-run it only on the new ones? I think we could modify the function that makes the report so it reads the json files instead of saving the results to memory. That would also make re-running the script after a crash a bit friendlier |
What I did in previous PRs makes it so the results for MCHBP scores are stored in success.json. So it already handles crashes perfectly. Now for adding coformers mid run, for loops are impractical. |
I was thinking that adding a flag to not run if the folder for the coformer already exists and has data and another flag called --report_only or something like that could be good for people less confident with scripting, That way if it crashes half way or you want to add just a few more coformers you can still generate a report including all the data you already have. |
The former is default behaviour. Do you want to leave a negative flag, or change the default behaviour to not ignore already ran folders? I think it is better as default behaviour. |
That shows you how often I re-run the script 😅 The default is fine. Would you prefer I approve this PR and you make another one later or make additional commits here? |
Both work fine for me. But I guess you are in the end of your work day, right? Cambridge is at 0 GMT. So I think it would be better to include it here as it works, and I create another one this weekend to finalize the other aspects. |
Sounds good. I'll have a loot at this next week then. |
I had some stuff coming up this week. Unfortunately, I will not be able to finish this until next week. I think this could be merged, but if you want to keep it open until then, that is also fine. I am sorry for this problem. |
This makes it safer to add new coformers mid run and re-generate a report for new coformers