Skip to content

Commit

Permalink
Fix failing pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
staadecker committed Mar 28, 2024
1 parent 6d67eee commit 954cd11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Pyoframe

[![codecov](https://codecov.io/gh/staadecker/pyoframe/graph/badge.svg?token=8258XESRYQ)](https://codecov.io/gh/staadecker/pyoframe)
![Build](https://github.com/staadecker/pyoframe/actions/workflows/ci.yml/badge.svg)
[![Build](https://github.com/staadecker/pyoframe/actions/workflows/ci.yml/badge.svg)](https://github.com/staadecker/pyoframe/actions/workflows/ci.yml)
[![Docs](https://github.com/staadecker/pyoframe/actions/workflows/publish_doc.yml/badge.svg)](https://staadecker.github.io/pyoframe/reference/)

A library to rapidly formulate large optimization models using Pandas or Polars dataframes.
Expand Down
4 changes: 2 additions & 2 deletions src/pyoframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"""

from pyoframe.monkey_patch import patch_dataframe_libraries
from pyoframe.constraints import sum, Set
from pyoframe.constraints import sum, sum_by, Set
from pyoframe.constants import Config
from pyoframe.variables import Variable
from pyoframe.model import Model
from pyoframe.constants import VType

patch_dataframe_libraries()

__all__ = ["sum", "Variable", "Model", "Set", "VType", "Config"]
__all__ = ["sum", "sum_by", "Variable", "Model", "Set", "VType", "Config"]
2 changes: 1 addition & 1 deletion src/pyoframe/objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Objective(Expression):
r"""
Examples:
>>> from pyoframe import Objective, Variable, Model, sum
>>> from pyoframe import Variable, Model, sum
>>> m = Model()
>>> m.a = Variable()
>>> m.b = Variable({"dim1": [1, 2, 3]})
Expand Down

0 comments on commit 954cd11

Please sign in to comment.