[SciPy-Dev] Ticket #995, All scipy.constants.constants functions "choke" on non-array sequence input

Vincent Davis vincent@vincentdavis....
Thu Jun 17 14:18:41 CDT 2010


The problem is that for example C2F is

def C2F(C):
     return 1.8 * C + 32
So array_like (list, tuple...) does not work.

What is the preferred solution?

1, Change the docs to say "scalar or array" and return a warning if C
is not a scalar or array
2, Ad the ability to handle all array_like.

Vincent


More information about the SciPy-Dev mailing list