Error adding meshes #272
Comments
|
bm@cage.ugent.be attached test.py on 10-13-2011 at 03:31 |
|
Note that it is a pitty the array iterator .flat cannot be used with in1d of numpy, so as to avoid the copying of the original array Trac comment by anonymous on 10-11-2011 at 10:19 |
|
We certainly do test mesh concatenation. Can you provide example meshes that cause the problem? Trac comment by guyer on 10-12-2011 at 22:29 |
|
I have it with this code. Note that I am using scipy trunk and numpy trunk from fipy import * Which gives the error: With change in bug comment, so .flatten(), things work again as before. Trac comment by bm@cage.ugent.be on 10-13-2011 at 03:30 |
|
Added file test.py, to avoid the bad formatting in the bug submission Trac comment by bm@cage.ugent.be on 10-13-2011 at 03:31 |
|
Works for me with the following config: and python 2.5.2. Trac comment by wd15 on 10-14-2011 at 12:09 |
|
On my laptop at home it also works I see now. Monday I'll see what is different on my work box (newer numpy for sure, but then, it could be due to a numpy bug in trunk). Trac comment by bm@cage.ugent.be on 10-14-2011 at 12:57 |
|
Do you use virtualenv and virtualenv-wrapper? Trac comment by wd15 on 10-14-2011 at 13:02 |
|
No, never heard of that packages before :-) Trac comment by bm@cage.ugent.be on 10-14-2011 at 13:13 |
|
Replying to bm@…:
I was just pointing out virtualenv because it's extremely useful when you're switching between versions of various packages or doing any python development. It makes life much easier. Trac comment by wd15 on 10-17-2011 at 09:46 |
|
bump Benny, did you ever figure out what was different about your work configuration? Our build slaves are all running NumPy 1.6.x, which is current and SciPy 0.9.x or 0.10.x, which is not. Any guess as to which is newer on your system? Trac comment by guyer on 01-28-2013 at 11:57 |
|
We are unable to reproduce the failure. Please reopen if this is still an issue. Trac comment by guyer on 09-09-2013 at 18:43 |
When I add meshes like
mesh = mesh1 + mesh2
I obtain the error
mesh1 = mesh1 + mesh2
File "/usr/lib/python2.7/dist-packages/numpy/lib/arraysetops.py", line 328, in in1d
mask |= (ar1 == a)
ValueError: operands could not be broadcast together with shapes (2) (2,8140) (2)
The solution would be in abstractMesh.py to flatten the arrays first:
@@ -351,11 +351,11 @@
self_faceVertexIDs = MA.masked_values(self_faceVertexIDs, -1)
want self's Faces for which all faceVertexIDs are in vertexCorrelates
want other's Faces for which all faceVertexIDs are in vertexCorrelates
I find it somehow strange I'm the only one hitting this.
Imported from trac ticket #368, created by bm@cage.ugent.be on 10-11-2011 at 10:09, last modified: 09-09-2013 at 18:43
The text was updated successfully, but these errors were encountered: