Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jun 28, 2024
1 parent caeb480 commit ce99b9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions premise/external_data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ def flag_activities_to_adjust(
regions = scenario_data["production volume"].region.values.tolist()
else:
data = scenario_data["production volume"].sel(
variables=dataset_vars["production volume variable"]
)
variables=dataset_vars["production volume variable"]
)
# fetch regions which do not contain nan data
regions = [
r for r in data.region.values.tolist()
r
for r in data.region.values.tolist()
if not np.isnan(data.sel(region=r).values).all()
]

Expand Down

0 comments on commit ce99b9d

Please sign in to comment.