Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 13, 2022
1 parent 18dff99 commit f307c66
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions carculator_truck/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def set_all(self, electric_utility_factor: float = None):
self.array.sel(
parameter=["gross mass", "driving mass", "cargo mass"],
powertrain=pt,
year=y
year=y,
)
/ 1000
).values.tolist()
Expand Down Expand Up @@ -354,16 +354,16 @@ def set_cargo_mass_and_annual_mileage(self, payload):
if "payload" in payload:
if self.cycle in payload["payload"]:
if s in payload["payload"][self.cycle]:
self.array.loc[dict(size=s, parameter="cargo mass")] = payload["payload"][
self.cycle
][s]
self.array.loc[dict(size=s, parameter="cargo mass")] = payload[
"payload"
][self.cycle][s]

if "annual mileage" in payload:
if self.cycle in payload["annual mileage"]:
if s in payload["annual mileage"][self.cycle]:
self.array.loc[dict(size=s, parameter="kilometers per year")] = payload[
"annual mileage"
][self.cycle][s]
self.array.loc[
dict(size=s, parameter="kilometers per year")
] = payload["annual mileage"][self.cycle][s]

def set_battery_preferences(self):

Expand Down

0 comments on commit f307c66

Please sign in to comment.