Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_lambda #269

Open
ryanmrichard opened this issue Aug 22, 2022 · 0 comments
Open

make_lambda #269

ryanmrichard opened this issue Aug 22, 2022 · 0 comments

Comments

@ryanmrichard
Copy link
Member

ryanmrichard commented Aug 22, 2022

Does anyone know if we can use pluginplay::make_lambda from Python?

I tried:

from simde import simde, chemist, pluginplay

def my_fxn(mol):
   ao_bs = chemist.AOBasisSetD()
   for atom in mol:
       # apply basis
   return chemist.AOSpaceD(ao_bs)

pt = simde.AtomicOrbitals
mod = pluginplay.make_lambda[pt](my_fxn)

and get:

  Failed to instantiate "make_lambda<simde::AtomicOrbitals>(function)"

As a workaround one can wrap the call to my_fxn in a full-fledged module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant