-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Avoid assembling if already done and overwrite == False #2317
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
Conversation
This QoL significantly reduces time needed for testing different inference parameters by reading assemblies from an existing file (if already run once). Works for both identity True and False.
| with open(pickle_path, "rb") as file: | ||
| data = pickle.load(file) | ||
|
|
||
| self.assemblies = {key: value for key, value in data.items() if key != "single"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.unique = data.pop('single', {})
self.assemblies = dataThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. A small annoyance is that it hangs a little when loading the assemblies.pickle, but I don't think this can be avoided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries! That's nothing in comparison to the time that would otherwise be spent forming the assemblies.
jeylau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left a minor comment about ass_filename; all good otherwise!
|
Renamed to |
|
Looking good, thanks @KonradDanielewski! |
This QoL significantly reduces time needed for testing different inference parameters by reading assemblies from an existing file (if already run once). Works for both identity True and False.