-
Notifications
You must be signed in to change notification settings - Fork 288
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
Create unique id for each synthesizer #1905
Create unique id for each synthesizer #1905
Conversation
e13f825
to
bcddd7f
Compare
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.
LGTM!
bcddd7f
to
36f3cb1
Compare
sdv/_utils.py
Outdated
""" | ||
class_name = synthesizer.__class__.__name__ | ||
synth_version = version.public | ||
unique_id = str(uuid.uuid4()).split('-')[-1] |
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.
If we take only a portion of it, it's not guaranteed to be unique anymore right?
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.
Yeah, I think that a portion is not guarateed to be unique and the odds of it repeating are small but there are. Should we use the entire UUID4 ?
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.
Yeah I think we should
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.
Done in 0e6f575
Resolves #1902
CU-86b00mxjz
This is how the
IDS
look :I'm printing both
instance
andid
just in case we wanted to change therepresentation
to be the id of the synthesizer.