-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
I used an example out of cpp2py/5-Parameters.ipynb together with TRIQS/unstable.
I found that wrapping the following params class
%%triqs
struct params{
int i;
double x=0;
params(){} // default
};
double f(params const & a) {
return a.i + a.x;
}and using it from the notebook
p = Params()
p.i, p.x = 1, 2.9
print p.i
print f(p)fails with
---------------------------------------------------------------------------TypeError
Traceback (most recent call last)
<ipython-input-5-64e6831a17a4> in <module>()
----> 1 p = Params()
2 p.i, p.x = 1, 2.9
3 print p.i
4 print f(p)
TypeError: cannot create 'ext.ext.Params' instances
Metadata
Metadata
Assignees
Labels
No labels