[Numpy-discussion] 'nansqrt' function?

Mauro Cavalcanti maurobio at gmail.com
Wed Feb 13 19:21:27 EST 2019


Thanks! I didn't heard of this package and will look into it.

Best regards,

Em Qua, 13 de fev de 2019 22:10, Robert McLeod <robbmcleod at gmail.com
escreveu:

> The `bottleneck` library is a very good package if there's some function
> in NumPy that you want to handle `nan`s in reductions without exploding.
>
> https://github.com/kwgoodman/bottleneck
>
> On Wed, Feb 13, 2019 at 12:35 PM Mauro Cavalcanti <maurobio at gmail.com>
> wrote:
>
>> Dear ALL,
>>
>> In the process of porting an existing (but abandoned) package to the
>> latest version of Numpy, I stumbled upon a call to a 'numpy.nansqrt'
>> function, which seems not to exist.
>>
>> Here is the specific code:
>>
>> def normTrans(y):
>>     denom = np.nansqrt(np.nansum(y**2))
>>     return y/denom
>>
>> As far as I could find, there is no such 'nansqrt' function in the
>> current version of Numpy, so I suspect that the above code has not been
>> properly tested.
>>
>> Am I right, or that function had existed in some past version of Numpy?
>>
>> Thanks in advance for any comments or suggestions.
>>
>> Best regards,
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at python.org
>> https://mail.python.org/mailman/listinfo/numpy-discussion
>>
>
>
> --
> Robert McLeod, Ph.D.
> robbmcleod at gmail.com
> robbmcleod at protonmail.com
> robert.mcleod at hitachi-hhtc.ca
> www.entropyreduction.al
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190213/2712d813/attachment.html>


More information about the NumPy-Discussion mailing list