Skip to content

Commit

Permalink
Merge pull request #173 from PyPSA/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
FabianHofmann authored Oct 11, 2023
2 parents 9d9991a + 02c2b4c commit f779cb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand Down Expand Up @@ -29,7 +29,7 @@ repos:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
types_or: [python, rst, markdown]
Expand Down
6 changes: 3 additions & 3 deletions linopy/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ def __mul__(self, other):
ds = ds.assign(const=other.const)
return merge(self, ds, dim=FACTOR_DIM, cls=QuadraticExpression)
else:
multiplyer = as_dataarray(other, coords=self.coords, dims=self.coord_dims)
coeffs = self.coeffs * multiplyer
multiplier = as_dataarray(other, coords=self.coords, dims=self.coord_dims)
coeffs = self.coeffs * multiplier
assert set(coeffs.shape) == set(self.coeffs.shape)
const = self.const * multiplyer
const = self.const * multiplier
return self.assign(coeffs=coeffs, const=const)

def __rmul__(self, other):
Expand Down

0 comments on commit f779cb2

Please sign in to comment.