Skip to content

Commit

Permalink
update release notes
Browse files Browse the repository at this point in the history
add test
  • Loading branch information
FabianHofmann committed Jul 25, 2023
1 parent 2e956c9 commit 13e4cd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Release Notes
=============

.. Upcoming Release
.. ----------------
Upcoming Release
----------------

* When multiplying a `LinearExpression` with a constant value, the constant in the `LinearExpression` was not updated. This is fixed now.

Version 0.2.1
-------------
Expand Down
8 changes: 8 additions & 0 deletions test/test_linear_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,14 @@ def test_linear_expression_groupby_with_series_false(v):
grouped = expr.groupby(groups).sum()


def test_linear_expression_groupby_with_series_false(v):
expr = 1 * v
groups = pd.Series([1] * 10 + [2] * 10, index=v.indexes["dim_2"])
groups.name = "dim_2"
with pytest.raises(ValueError):
grouped = expr.groupby(groups).sum()


def test_linear_expression_groupby_with_dataframe(v):
expr = 1 * v
groups = pd.DataFrame(
Expand Down

0 comments on commit 13e4cd5

Please sign in to comment.