Skip to content

Conversation

@KonradDanielewski
Copy link
Contributor

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.

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.
@MMathisLab MMathisLab requested a review from jeylau July 24, 2023 09:46
@MMathisLab MMathisLab added WORK IN PROGRESS! developers are currently working on this feature... stay tuned. high-priority labels Jul 25, 2023
with open(pickle_path, "rb") as file:
data = pickle.load(file)

self.assemblies = {key: value for key, value in data.items() if key != "single"}
Copy link
Contributor

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 = data

Copy link
Contributor Author

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

Copy link
Contributor

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
jeylau previously requested changes Jul 27, 2023
Copy link
Contributor

@jeylau jeylau left a 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!

@KonradDanielewski
Copy link
Contributor Author

Renamed to assembly_builder, seems appropriate and avoids confusion with the class name. Also added assemblies_filename as a variable before the if statement

@jeylau
Copy link
Contributor

jeylau commented Jul 27, 2023

Looking good, thanks @KonradDanielewski!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

high-priority WORK IN PROGRESS! developers are currently working on this feature... stay tuned.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants