nvpopov / qpp Goto Github PK
View Code? Open in Web Editor NEWqpp libraries for computational chemistry[c++, python]
qpp libraries for computational chemistry[c++, python]
As qpp.py contains now "from qpp_cpp import *", all things defined in qpp_cpp, as well as in other modules, make a mess in qpp namespace.
We have to think what should left in qpp namespace, and what should be hidden.
I'd like to get the next feature:
I'd like hotkeys. Let's use a hotkey to each command.
It Will be very usefull to have some magic object to move and to rotate another objects like [this] (https://drive.google.com/file/d/1vf66Q34unLhfe9ktlxxz_tEYDOcexwdn/view?usp=drivesdk)
Exception handling unification. Throughout all QPP it's necessary to use unified exceptions. These exceptions should be selective - when used from Python, they should generate Python exception like IndexError, TypeError, ect. When used from C++, they should generate std::exception of appropriate type.
That was bad idea, but now it's fixed.
Qpp doesn't support this Python version. There is no PyInt_Type in Python3, but Qpp uses it.
How can I use a static link to boost library?
For the example by Misha the ngbr table is now building correctly. Try to find more bugs there!
This code gives an error
geometry<double> geom(0);
bonding_table<double> bt;
**neighbours_table<double> ngbr(geom,bt);**
bt.set_pair("Si","O",2.5);
bt.set_pair("O","H",1.2);
geom.build_type_table();
geom.add("Si",0,0,0);
geom.add("O",1,0,0);
ngbr.transl_mode = false;
// ngbr.build_disttable();
ngbr.build();`
but
geometry<double> geom(0);
bonding_table<double> bt;
bt.set_pair("Si","O",2.5);
bt.set_pair("O","H",1.2);
geom.build_type_table();
geom.add("Si",0,0,0);
geom.add("O",1,0,0);
**neighbours_table<double> ngbr(geom,bt);**
ngbr.transl_mode = false;
// ngbr.build_disttable();
ngbr.build();`
and all is ok.
neighbours_table has a wrong constructor.
Will you correct?
I'd like to get the next feature:
It was a bad idea to re-define len() function for geometry.
The proper way is to define geometry.len()
How to make a python version selector in CMakeLists.txt ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.