Commit 488ffa36 authored by Markus Gaug's avatar Markus Gaug
Browse files

minor changes

parent aab51256
......@@ -917,8 +917,10 @@ class AtmosphericProfiles():
def eval_sin(self, date: datetime, h: u.km) -> float:
params = np.array([i.value for i in self.entry_data[date]["models"]["Quadratic Sine Approx"]["popt"]])
res = self.models_class.quadratic_sin_model(h.value, *params)
return -99 if res == 0 else res
if (isinstance(h, (list, tuple, np.ndarray))):
return np.where((res == 0), -99 , res)
else:
return -99 if res == 0 else res
def eval_strato(self, date: datetime, h: u.km) -> float:
params = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment