Skip to content

Commit

Permalink
Update xscen/ensembles.py
Browse files Browse the repository at this point in the history
Co-authored-by: RondeauG <[email protected]>
  • Loading branch information
sarahclaude and RondeauG authored Oct 2, 2023
1 parent d33bde6 commit 4da37e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xscen/ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def generate_weights(

# Check if there are both RCMs and GCMs in datasets, with attribute_weights set to weight them.
if (
attribute_weights
any(a in ["source", "driving_model"] for a in list(attribute_weights.keys()))
and len(list(groupby([info[k]["driving_model"] is None for k in info.keys()])))
> 1
):
Expand Down

0 comments on commit 4da37e8

Please sign in to comment.