-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
range replaced with enumerate #461
range replaced with enumerate #461
Conversation
sbol3/toplevel.py
Outdated
new_reference = identity_map[str_item].identity | ||
for i, item in enumerate(items): | ||
str_item = str(item) | ||
if str(item) in identity_map: |
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 str(item) in identity_map: | |
if str_item in identity_map: |
sbol3/toplevel.py
Outdated
for i, item in enumerate(items): | ||
str_item = str(item) | ||
if str(item) in identity_map: | ||
new_reference = identity_map[str(item)].identity |
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.
new_reference = identity_map[str(item)].identity | |
new_reference = identity_map[str_item].identity |
This looks great. I think this PR should also include deleting |
Yeah great idea, slipped my mind. Thank you |
Done |
#433 Simple fix replacing
range(len(items))
withenumerate(items)