El día 15 de marzo de 2012 05:14, questions anon
<questions.a...@gmail.com> escribió:
> I think my error is from the np.genfromtxt because I just checked the size
> of my data and it appears in 1D rather than 2D.

This is unsurprising since your file has just one row of data. I
overlooked that because the weird error message drove all my attention
to it. You can reshape the resulting array to (691, 886). Still that
error message should not be there in any case.

>> I don't really understand what np.logical_or is or how to use it?
>> I have tried just calling it at the beginning of the script

np.logical_or computes the logical out of two boolean arrays. It's
called internally by countourf and that's triggering the exception:

AttributeError: logical_or

Which makes no sense at all because:
1. np is expected to be an alias for numpy and numpy *does* have an
attribute called logical_or.
2. In case np didn't have an attribute called logical_or (for whatever
reason) it would cause an exception but the error message should be
something like "AttributeError: 'module' object has no attribute
'logical_or'".

You where asked to call np.logical_or at the beginning of the script
in order to know if it triggers the exception in that context.

>> [...] but I still end up with the same error.

So the call at the beginning didn't trigger the error?

Regards

Goyo

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to