Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Leitner committed Jul 12, 2021
1 parent ad4c50b commit 2b343e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
20 changes: 0 additions & 20 deletions adcc/OperatorIntegrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,26 +201,6 @@ def pcm_potential_elec(self):
callback = self.provider_ao.pcm_potential_elec
return self.__import_density_dependent_operator(callback)

@property
def density_dependent_operators(self):
if not hasattr(self.provider_ao, "density_dependent_operators"):
return {}
ret = {}
for op in self.provider_ao.density_dependent_operators:
ao_callback = self.provider_ao.density_dependent_operators[op]

def process_operator(dm, callback=ao_callback):
dm_ao = sum(dm.to_ao_basis())
v_ao = callback(dm_ao)
v_bb = replicate_ao_block(self.mospaces, v_ao, is_symmetric=True)
v_ff = OneParticleOperator(self.mospaces, is_symmetric=True)
transform_operator_ao2mo(
v_bb, v_ff, self.__coefficients, self.__conv_tol
)
return v_ff
ret[op] = process_operator
return ret

@property
def timer(self):
ret = Timer()
Expand Down
3 changes: 0 additions & 3 deletions adcc/backends/test_backends_polembed.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
import adcc
import adcc.backends

from adcc.adc_pp.matrix import AdcBlock
from adcc import OneParticleOperator, AmplitudeVector

from numpy.testing import assert_allclose

import pytest
Expand Down

0 comments on commit 2b343e0

Please sign in to comment.