From e3b7d2d0914e2706ffa4d74d36d6fc92ace1d2a1 Mon Sep 17 00:00:00 2001 From: migueldelafuente1 Date: Thu, 2 Nov 2023 16:51:50 +0100 Subject: [PATCH] Fixing bug in the library miss-importing --- helpers/TBME_Runner.py | 5 +++-- matrix_elements/MultipoleForces.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/TBME_Runner.py b/helpers/TBME_Runner.py index 94acfa7..96b23d4 100644 --- a/helpers/TBME_Runner.py +++ b/helpers/TBME_Runner.py @@ -389,10 +389,12 @@ def _compute1BodyMatrixElements(self, kin=False, force=None): setting. """ obme_class : _OneBodyMatrixElement = None + sho_params = getattr(self.input_obj, ip.SHO_Parameters) + if kin or force == ForceEnum.Kinetic_2Body: force = ForceEnum.Kinetic_2Body obme_class = _Kinetic_1BME - obme_class.setInteractionParameters(**self.input_obj.SHO_Parameters) + obme_class.setInteractionParameters(**sho_params) self.results_1b_byInterac[force] = {} else: obme_class = self.tbme_class.ONEBODY_MATRIXELEMENT @@ -409,7 +411,6 @@ def _compute1BodyMatrixElements(self, kin=False, force=None): self.results_1b_byInterac[force] = {} if obme_class != None: - sho_params = getattr(self.input_obj, ip.SHO_Parameters) obme_class.setInteractionParameters(**params, **sho_params) else: return diff --git a/matrix_elements/MultipoleForces.py b/matrix_elements/MultipoleForces.py index 5dc44ce..f064e56 100644 --- a/matrix_elements/MultipoleForces.py +++ b/matrix_elements/MultipoleForces.py @@ -17,7 +17,6 @@ from helpers.WaveFunctions import QN_1body_radial, QN_2body_jj_JT_Coupling from copy import deepcopy, copy -from debugpy._vendored.pydevd._pydevd_bundle.pydevd_cython import self