Skip to content

Commit

Permalink
Merge pull request #221 from carbonplan/hotfix-scrfdataarray
Browse files Browse the repository at this point in the history
fix scrf data array for variables not following the logistic code path
  • Loading branch information
orianac authored Jun 3, 2022
2 parents cd66a88 + 46764ef commit d18f102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmip6_downscaling/methods/gard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ def add_random_effects(
downscaled = downscaled.where(downscaled >= 0, 0)

else:
downscaled = model_output['pred'] + scrf['scrf'] * model_output['prediction_error']
downscaled = model_output['pred'] + scrf * model_output['prediction_error']

return downscaled.to_dataset(name=run_parameters.variable)

1 comment on commit d18f102

@vercel
Copy link

@vercel vercel bot commented on d18f102 Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.