From 98b9372dd6533de88851fdfe2dfbf0eadbe08429 Mon Sep 17 00:00:00 2001 From: Yehuda-Binik Date: Wed, 18 Oct 2023 20:39:05 -0400 Subject: [PATCH] changed the formatting of variable names in visit_implementation() in the SBOL3To2ConversionVisitor class to comply with variable naming conventions --- sbol_utilities/sbol3_sbol2_conversion.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sbol_utilities/sbol3_sbol2_conversion.py b/sbol_utilities/sbol3_sbol2_conversion.py index 76c9ac5..d91cccf 100644 --- a/sbol_utilities/sbol3_sbol2_conversion.py +++ b/sbol_utilities/sbol3_sbol2_conversion.py @@ -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