GithubHelp home page GithubHelp logo

Comments (3)

cisert avatar cisert commented on September 27, 2024

When tasks="all", charges are not returned from the calculator.

from delfta.

josejimenezluna avatar josejimenezluna commented on September 27, 2024

?

In [3]:     from openbabel.pybel import readstring
   ...: 
   ...:     mols = [readstring("smi", "CCO")]
   ...:     calc = DelftaCalculator(
   ...:         tasks="all",
   ...:         delta=True,
   ...:         force3D=True,
   ...:     )

In [4]:     preds_delta = calc.predict(mols, batch_size=32)
   ...: 
2021/06/18 03:16:16 PM | DelFTa | INFO: Assigned MMFF94 coordinates to molecules with idx. [0]
2021/06/18 03:16:16 PM | DelFTa | INFO: Now running network for model multitask_delta...
2021/06/18 03:16:19 PM | DelFTa | INFO: Now running network for model single_energy_delta...
2021/06/18 03:16:19 PM | DelFTa | INFO: Now running network for model charges_delta...
2021/06/18 03:16:19 PM | DelFTa | INFO: Now running xTB...

In [5]: preds_delta
Out[5]: 
{'E_homo': array([-0.34795533]),
 'E_lumo': array([0.20835459]),
 'E_gap': array([0.55864072]),
 'dipole': array([1.72065301]),
 'E_form': array([-1.5600189], dtype=float32),
 'charges': array([[-0.0834298 ,  0.12999302, -0.3572342 ,  0.0377308 ,  0.02626066,
          0.04680862,  0.01781182,  0.0433155 ,  0.17601211]],
       dtype=float32)}

from delfta.

cisert avatar cisert commented on September 27, 2024

This only seems to happen if you pass multiple molecules.

mols = [readstring("smi", "CCO"), readstring("smi", "CCCC")] 
# rest of code the same 
# >> error

error_message

from delfta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.