kgullikson88 / Telluric-Fitter

Telluric fitting made easy
http://telfit.readthedocs.org/en/latest/
MIT License
20 stars 17 forks source link

Avoid possible element-wise comparisons #40

Open Kamuish opened 3 years ago

Kamuish commented 3 years ago

In python3.8 + numpy v1.18.1 the MakeModel function raises the following Exception:

if wavegrid != None:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

This PR changes the element-wise comparisons to the "is" syntax.