<br><br><div class="gmail_quote">On Mon, May 7, 2012 at 7:28 AM, Tom Aldcroft <span dir="ltr"><<a href="mailto:aldcroft@head.cfa.harvard.edu" target="_blank">aldcroft@head.cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry to bother again, but I am running into an issue with the numpy<br>
quaternion dtype on numpy 1.6.1 :<br>
<br>
$ python<br>
ActivePython 2.7.1.4 (ActiveState Software Inc.) based on<br>
Python 2.7.1 (r271:86832, Feb  7 2011, 11:30:54)<br>
[GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import numpy<br>
>>> import quaternion<br>
>>> q = numpy.quaternion(1,0,0,0)<br>
>>> q<br>
quaternion(1, 0, 0, 0)<br>
>>> q2 = numpy.quaternion(1,0,0,0)<br>
>>> q * q2<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
TypeError: ufunc 'multiply' not supported for the input types, and the<br>
inputs could not be safely coerced to any supported types according to<br>
the casting rule 'safe'<br>
>>> numpy.__version__<br>
'1.6.1'<br>
<br>
Using numpy 1.5.0 on the same platform the multiplication works and I<br>
get the expected result.<br>
<br>
For my near-term goal of getting tests in place I can just use 1.5.0,<br>
but if anyone has an idea of the problem I would appreciate help.<br>
<br></blockquote><div><br>I haven't looked at this yet, but I set up the repository, added your name to the numpy core developers, and put in a pull request merging the rational stuff.<br><br>If you would like, I can also merge in the quaternion type so you can start working with the repository. The build will need to be fixed up so it can work with quaternions in a subdirectory.<br>
<br>Chuck <br></div><br></div>