Skip to content

Commit

Permalink
fix 'dims' deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel42 committed Dec 4, 2024
1 parent 947fc1f commit b72d9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emiproc/profiles/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def country_to_cells(

da_sf = profiles_to_scalingfactors_dataarray(profiles, profiles_indexes)

sf_on_cell = da_sf.dot(countries_fractions, dims=["country"])
sf_on_cell = da_sf.dot(countries_fractions, dim=["country"])

profiles_array, new_indexes = ratios_dataarray_to_profiles(
sf_on_cell.rename({"scaling_factors": "ratio"})
Expand Down
2 changes: 1 addition & 1 deletion emiproc/speciation.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def speciate(
{"speciation": "country"}
)
da_ratios_cells = countries_fractions.dot(
da_ratios_country, dims=["country"]
da_ratios_country, dim=["country"]
)
# First check that where the sum is 0, the total emissions are 0
mask_zero_ratios = da_ratios_cells.sum("substance") == 0
Expand Down

0 comments on commit b72d9a4

Please sign in to comment.