[MMTK] Matrices not aligned

Ramon Crehuet rcrehuet at gmail.com
Wed Oct 29 10:24:32 UTC 2008

Hi Roberto,
We encountered a similar problem, which we have not solved. But maybe
I can help you trace the origin of the problem.
Try the following:
inport Numeric
Does it give all the elements or the last is missing? I found the
later, and this is the source of the alignment problem. Unfortunately
I do not know how to correct this error from Numeric. From the scipy
list, I have received the suggestion to upgrade, but this is not
recommended by Konrad Hinsen... so we are rather stuck.

2008/10/29 Roberto Olivares-Amaya <robolivares at gmail.com>:
> Hi
> I'm new to the mmtk community and I have been trying to compile this program
> in some machines. However, in one of them, I get the following error when I
> try to run one of the test files on the website:
>   File "/usr/lib/python2.5/site-packages/MMTK/Universe.py", line 1012, in
> __init__
>   self.setSize(size)
>   File "/usr/lib/python2.5/site-packages/MMTK/Universe.py", line 1023, in
> setSize
>   self.data[:] = size
> ValueError: matrices are not aligned for copy
> Is this perhaps due to scientific or numeric python?
> The file is "building molecules on a lattice"
> http://dirac.cnrs-orleans.fr/MMTK/using-mmtk/mmtk-example-scripts/miscellaneous/building-molecules-on-a-lattice/
> Thanks for the help!
> Roberto
> _______________________________________________
> mmtk maillist  -  mmtk at starship.python.net
> http://starship.python.net/mailman/listinfo/mmtk

More information about the mmtk mailing list