From 29444a407340ad93da1b487064f998173bc5cad0 Mon Sep 17 00:00:00 2001 From: Xiaorui Dong Date: Thu, 30 Nov 2023 00:04:49 -0500 Subject: [PATCH] Rename rdkit.py in resonance to avoid confusing imports of rdkit --- rdmc/resonance/__init__.py | 4 ++-- rdmc/resonance/{rdkit.py => rdkit_backend.py} | 0 rdmc/resonance/{rmg.py => rmg_backend.py} | 0 test/resonance/test_filtration.py | 2 +- test/resonance/{test_rdkit.py => test_rdkit_backend.py} | 2 +- test/resonance/{test_rmg_resonance.py => test_rmg_backend.py} | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename rdmc/resonance/{rdkit.py => rdkit_backend.py} (100%) rename rdmc/resonance/{rmg.py => rmg_backend.py} (100%) rename test/resonance/{test_rdkit.py => test_rdkit_backend.py} (99%) rename test/resonance/{test_rmg_resonance.py => test_rmg_backend.py} (99%) diff --git a/rdmc/resonance/__init__.py b/rdmc/resonance/__init__.py index d9f007f4..1bd10bfa 100644 --- a/rdmc/resonance/__init__.py +++ b/rdmc/resonance/__init__.py @@ -3,5 +3,5 @@ from rdmc.resonance.base import generate_resonance_structures # Make sure resonance algorithms are registered -import rdmc.resonance.rdkit -import rdmc.resonance.rmg +import rdmc.resonance.rdkit_backend +import rdmc.resonance.rmg_backend diff --git a/rdmc/resonance/rdkit.py b/rdmc/resonance/rdkit_backend.py similarity index 100% rename from rdmc/resonance/rdkit.py rename to rdmc/resonance/rdkit_backend.py diff --git a/rdmc/resonance/rmg.py b/rdmc/resonance/rmg_backend.py similarity index 100% rename from rdmc/resonance/rmg.py rename to rdmc/resonance/rmg_backend.py diff --git a/test/resonance/test_filtration.py b/test/resonance/test_filtration.py index 9b636b13..9941df1f 100644 --- a/test/resonance/test_filtration.py +++ b/test/resonance/test_filtration.py @@ -35,7 +35,7 @@ charge_filtration, aromaticity_filtration, ) -from rdmc.resonance.rmg import ( +from rdmc.resonance.rmg_backend import ( generate_resonance_structures, ) from rdmc.resonance.utils import get_charge_span diff --git a/test/resonance/test_rdkit.py b/test/resonance/test_rdkit_backend.py similarity index 99% rename from test/resonance/test_rdkit.py rename to test/resonance/test_rdkit_backend.py index 48f9a85b..2b35c0d3 100644 --- a/test/resonance/test_rdkit.py +++ b/test/resonance/test_rdkit_backend.py @@ -9,7 +9,7 @@ from rdkit import Chem -from rdmc.resonance.rdkit import generate_resonance_structures +from rdmc.resonance.rdkit_backend import generate_resonance_structures smi_params = Chem.SmilesParserParams() diff --git a/test/resonance/test_rmg_resonance.py b/test/resonance/test_rmg_backend.py similarity index 99% rename from test/resonance/test_rmg_resonance.py rename to test/resonance/test_rmg_backend.py index dd7a7b22..54ed368f 100644 --- a/test/resonance/test_rmg_resonance.py +++ b/test/resonance/test_rmg_backend.py @@ -1,6 +1,6 @@ from rdmc import RDKitMol from rdmc.resonance.utils import get_lone_pair, is_aromatic, is_identical -from rdmc.resonance.rmg import ( +from rdmc.resonance.rmg_backend import ( _clar_optimization, _clar_transformation, generate_clar_structures,