Re: [Yade-users] [Question #699698]: ERROR:root:Unable to guess python type from cxx type 'vector>

2021-12-05 Thread Ziyu Wang
Question #699698 on Yade changed:
https://answers.launchpad.net/yade/+question/699698

Status: Answered => Solved

Ziyu Wang confirmed that the question is solved:
Thanks Jérôme.That solved my problem.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #699698]: ERROR:root:Unable to guess python type from cxx type 'vector>

2021-12-02 Thread Jérôme Duriez
Question #699698 on Yade changed:
https://answers.launchpad.net/yade/+question/699698

Status: Open => Answered

Jérôme Duriez proposed the following answer:
GUI inspector (though really nice) may not be able to render all
simulation attributes i.e. safely guide them through the C++ / Python
barrier, you have one example here. Your link [1] is another one.

Fortunately, you can inspect manually from command line e.g.

b = O.bodies[0]
print(b.state.pos)

same with engines see e.g. https://yade-dem.org/doc/tutorial-data-
mining.html. I suspect it will give you access to what you wanna know
about (which is usually not one of those things that can not make it
from C++ to Python).

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #699698]: ERROR:root:Unable to guess python type from cxx type 'vector>

2021-12-01 Thread Ziyu Wang
Question #699698 on Yade changed:
https://answers.launchpad.net/yade/+question/699698

Ziyu Wang gave more information on the question:
The following is the information in printAllVersions():

Yade version   :  2028-6129~9b0efd1~bionic1
Yade features  :  LOGGER USEFUL_ERRORS VTK OPENMP GTS QT5 CGAL PFVFLOW PFVFLOW 
LINSOLV MPI TWOPHASEFLOW LS_DEM FEMLIKE GL2PS LBMFLOW THERMAL PARTIALSAT 
POTENTIAL_PARTICLES POTENTIAL_BLOCKS
Yade config dir:  ~/.yadedaily
Yade precision :  53 bits, 15 decimal places, without mpmath, PrecisionDouble
```

Libraries used :

| library   | cmake| C++ |
| - |  | --- |
| boost | 106501   | 1.65.1  |
| cgal  |  | 4.11|
| clp   | 1.16.11  | 1.16.11 |
| cmake | 3.10.2   | |
| coinutils | 2.10.14  | 2.10.14 |
| compiler  | /usr/bin/c++ 7.5.0   | gcc 7.5.0   |
| eigen | 3.3.4| 3.3.4   |
| freeglut  | 2.8.1| |
| gl|  | 20190911|
| ipython   | 5.5.0| |
| metis |  | 5.1.0   |
| mpi   | 3.1  | ompi:2.1.1  |
| mpi4py| 2.0.0| |
| mpmath| 1.0.0| |
| openblas  |  |  OpenBLAS 0.2.20|
| python| 3.6.9| 3.6.9   |
| qglviewer |  | 2.6.3   |
| qt|  | 5.9.5   |
| sphinx| 1.6.7-final-0| |
| sqlite|  | 3.22.0  |
| suitesparse   | 5.1.2| 5.1.2   |
| vtk   | 6.3.0| 6.3.0   |

```
Linux version  :  Ubuntu 18.04.6 LTS
Architecture   :  amd64
Little endian  :  True
```

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #699698]: ERROR:root:Unable to guess python type from cxx type 'vector>

2021-11-30 Thread Ziyu Wang
New question #699698 on Yade:
https://answers.launchpad.net/yade/+question/699698

Dear all,

I found a problem that maybe unrelated to the script I was running (because I 
tried to run multiple scripts including the example script).
When I click the inspect button in the Yade interactive interface,the terminal 
continuous outputs “ERROR:root:Unable to guess python type from cxx type 
'vector>'”

I have conducted relevant search in the forum and found [1].
Sometimes I really want to know about the body or engine So maybe I need to use 
the inspect function..

Best regards.

[1]https://answers.launchpad.net/yade/+question/689485

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp