Skip to content

Commit

Permalink
update Result -> make_result
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Jul 7, 2023
1 parent 15ddffc commit d3b9297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smrt/utils/mpl_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from matplotlib import transforms as mtransforms
from matplotlib.ticker import FixedLocator, Formatter

from smrt.core.result import Result
from smrt.core.result import make_result
from smrt.core.model import make_model


Expand Down Expand Up @@ -113,7 +113,7 @@ def solve(self, snowpack, emmodel_instances, sensor, atmosphere):
n /= n[sensor_in_layer]

cosine = np.sqrt(1 - (np.sin(sensor.theta) / n)**2)
return Result(cosine, [('layer', np.arange(1 + len(snowpack.layers)))])
return make_result(sensor, cosine, [('layer', np.arange(1 + len(snowpack.layers)))])


#
Expand Down

0 comments on commit d3b9297

Please sign in to comment.