mzechmeister / serval

calculate radial velocities from stellar spectra
MIT License
36 stars 9 forks source link

warnings with python3 #46

Closed hlruh closed 1 year ago

hlruh commented 2 years ago

Running serval with python3 results in various warnings, e.g.

<string>:6: DeprecationWarning: Calling nonzero on 0d arrays is deprecated, as it behaves surprisingly. Use 
`atleast_1d(cond).nonzero()` if the old behavior was intended.
If the context of this warning is of the form `arr[nonzero(cond)]`, just use `arr[cond]`.
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=4 encoding='UTF-8'>
mzechmeister commented 2 years ago

It should be fixed with 3f17bd1 (#52, ResourceWarning) and 444f4ea.

mzechmeister commented 1 year ago

@hlruh: Is the problem since 3f17bd1 still present?

hlruh commented 1 year ago

The problem is no longer present for me.