Skip to content

Commit

Permalink
Merge branch 'issue_283' of https://github.com/fxbuson/SBOL-utilities
Browse files Browse the repository at this point in the history
…into issue_283
  • Loading branch information
fxbuson committed Sep 27, 2024
2 parents 3664056 + 3b41bbf commit 8e95d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbol_utilities/sbol3_sbol2_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _convert_toplevel(self, obj2: sbol2.TopLevel, obj3: sbol3.TopLevel):
obj3.attachments = [a.identity for a in obj2.attachments]

def _sbol3_identity(self, obj2: sbol2.Identified):
if obj2.identity.endswith("/" + obj2.version):
if obj2.version and obj2.identity.endswith("/" + obj2.version):
return obj2.identity[:-len("/" + obj2.version)]
return obj2.identity

Expand Down

0 comments on commit 8e95d0d

Please sign in to comment.