Skip to content

Commit

Permalink
Adjust files to new black release (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
LauWien authored Feb 2, 2022
1 parent a2a30ed commit 1df3619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion message_ix/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _aconst(self):
k0 = self._k0()
kpvs = self.data["kpvs"]
# TODO: why name this partmp??
partmp = (bconst * demand_ref ** rho).groupby(level="node").sum()
partmp = (bconst * demand_ref**rho).groupby(level="node").sum()
# TODO: automatically get the units here!!
aconst = ((gdp0 / 1e3) ** rho - partmp) / (k0 / 1e3) ** (rho * kpvs)
# want the series to only have index of node
Expand Down
2 changes: 1 addition & 1 deletion message_ix/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def make_austria(mp, solve=False, quiet=True):

gdp_profile = np.array([1.0, 1.21631, 1.4108, 1.63746])
beta = 0.7
demand_profile = gdp_profile ** beta
demand_profile = gdp_profile**beta

# From IEA statistics, in GW·h, converted to GW·a
base_annual_demand = dict(other_electricity=55209.0 / 8760, light=6134.0 / 8760)
Expand Down
2 changes: 1 addition & 1 deletion message_ix/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def test_dl(message_ix_cli, opts, tmp_path):
major = message_ix.__version__.split(".")[0]

# 'message-ix dl' defaults to the latest release
pattern = re.compile(fr"Default: latest release v{major}\.\d+\.\d+")
pattern = re.compile(rf"Default: latest release v{major}\.\d+\.\d+")
assert pattern.match(r.output)

0 comments on commit 1df3619

Please sign in to comment.