Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Feb 2, 2023
2 parents b7f6e50 + 61131ab commit 9a6087e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions carculator_utils/hot_emissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def get_hot_emissions(
},
)


# bit of a manual calibration for N2O and NH3
# as they do not correlate with fuel consumption

Expand Down Expand Up @@ -402,7 +401,9 @@ def get_hot_emissions(

engine_wear = self.engine_wear.sel(
powertrain=[
MAP_PWT[pt] if MAP_PWT[pt] in self.engine_wear.powertrain.values else "BEV"
MAP_PWT[pt]
if MAP_PWT[pt] in self.engine_wear.powertrain.values
else "BEV"
for pt in emissions.powertrain.values
]
)
Expand Down Expand Up @@ -477,8 +478,8 @@ def get_hot_emissions(

res = xr.DataArray(
np.concatenate(
(urban_emissions, rural_emissions, highway_emissions), axis=-1
),
(urban_emissions, rural_emissions, highway_emissions), axis=-1
),
coords=[
emissions.coords["value"],
emissions.coords["year"],
Expand Down
5 changes: 2 additions & 3 deletions carculator_utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def create_PHEV(self):
"recuperation efficiency",
"charger mass",
"inverter mass",
"power distribution unit mass"
"power distribution unit mass",
],
powertrain=pwt,
)
Expand All @@ -750,7 +750,7 @@ def create_PHEV(self):
"recuperation efficiency",
"charger mass",
"inverter mass",
"power distribution unit mass"
"power distribution unit mass",
],
powertrain="PHEV-e",
)
Expand All @@ -776,7 +776,6 @@ def create_PHEV(self):
]
)


self.array.loc[
dict(parameter="TtW energy, combustion mode", powertrain=pwt)
] = self.array.loc[dict(parameter="TtW energy", powertrain=pwtc)]
Expand Down

0 comments on commit 9a6087e

Please sign in to comment.