Skip to content

Commit

Permalink
changed the formatting of variable names in visit_implementation() in…
Browse files Browse the repository at this point in the history
… the SBOL3To2ConversionVisitor class to comply with variable naming conventions
  • Loading branch information
Yehuda-Binik committed Oct 19, 2023
1 parent 9c03840 commit 98b9372
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sbol_utilities/sbol3_sbol2_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ def visit_externally_defined(self, a: sbol3.ExternallyDefined):
# Priority: 3
raise NotImplementedError('Conversion of ExternallyDefined from SBOL3 to SBOL2 not yet implemented')

def visit_implementation(self, implement3: sbol3.Implementation):
def visit_implementation(self, imp3: sbol3.Implementation):
# Priority: 1
# Make the Implement object and add it to the document
implement2 = sbol2.Implementation(implement3.identity, version=self._sbol2_version(implement3))
implement2.built = implement3.built
self.doc2.addImplementation(implement2)
imp2 = sbol2.Implementation(imp3.identity, version=self._sbol2_version(imp3))
imp2.built = imp3.built
self.doc2.addImplementation(imp2)
# Map over all other TopLevel properties and extensions not covered by the constructor
self._convert_toplevel(implement3, implement2)
self._convert_toplevel(imp3, imp2)

def visit_interaction(self, a: sbol3.Interaction):
# Priority: 2
Expand Down

0 comments on commit 98b9372

Please sign in to comment.