pyoframe 0.0.7__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {pyoframe-0.0.7/src/pyoframe.egg-info → pyoframe-0.0.8}/PKG-INFO +2 -2
  2. {pyoframe-0.0.7 → pyoframe-0.0.8}/pyproject.toml +2 -2
  3. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/core.py +3 -7
  4. {pyoframe-0.0.7 → pyoframe-0.0.8/src/pyoframe.egg-info}/PKG-INFO +2 -2
  5. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe.egg-info/requires.txt +1 -1
  6. {pyoframe-0.0.7 → pyoframe-0.0.8}/LICENSE +0 -0
  7. {pyoframe-0.0.7 → pyoframe-0.0.8}/README.md +0 -0
  8. {pyoframe-0.0.7 → pyoframe-0.0.8}/setup.cfg +0 -0
  9. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/__init__.py +0 -0
  10. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/_arithmetic.py +0 -0
  11. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/constants.py +0 -0
  12. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/io.py +0 -0
  13. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/io_mappers.py +0 -0
  14. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/model.py +0 -0
  15. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/model_element.py +0 -0
  16. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/monkey_patch.py +0 -0
  17. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/objective.py +0 -0
  18. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/solvers.py +0 -0
  19. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/user_defined.py +0 -0
  20. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe/util.py +0 -0
  21. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe.egg-info/SOURCES.txt +0 -0
  22. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe.egg-info/dependency_links.txt +0 -0
  23. {pyoframe-0.0.7 → pyoframe-0.0.8}/src/pyoframe.egg-info/top_level.txt +0 -0
  24. {pyoframe-0.0.7 → pyoframe-0.0.8}/tests/test_arithmetic.py +0 -0
  25. {pyoframe-0.0.7 → pyoframe-0.0.8}/tests/test_examples.py +0 -0
  26. {pyoframe-0.0.7 → pyoframe-0.0.8}/tests/test_io.py +0 -0
  27. {pyoframe-0.0.7 → pyoframe-0.0.8}/tests/test_operations.py +0 -0
  28. {pyoframe-0.0.7 → pyoframe-0.0.8}/tests/test_solver.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyoframe
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Blazing fast linear program interface
5
5
  Author-email: Bravos Power <dev@bravospower.com>
6
6
  Project-URL: Homepage, https://bravos-power.github.io/pyoframe/
@@ -15,7 +15,7 @@ Classifier: Natural Language :: English
15
15
  Requires-Python: >=3.8
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: polars
18
+ Requires-Dist: polars==0.20.27
19
19
  Requires-Dist: numpy
20
20
  Requires-Dist: pyarrow
21
21
  Requires-Dist: pandas
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyoframe"
7
- version = "0.0.7"
7
+ version = "0.0.8"
8
8
  authors = [{ name = "Bravos Power", email = "dev@bravospower.com" }]
9
9
  description = "Blazing fast linear program interface"
10
10
  readme = "README.md"
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "License :: OSI Approved :: MIT License",
17
17
  "Natural Language :: English",
18
18
  ]
19
- dependencies = ["polars", "numpy", "pyarrow", "pandas", "tqdm"]
19
+ dependencies = ["polars==0.20.27", "numpy", "pyarrow", "pandas", "tqdm"]
20
20
 
21
21
  [project.optional-dependencies]
22
22
  dev = [
@@ -271,11 +271,7 @@ class Set(ModelElement, SupportsMath, SupportPolarsMethodMixin):
271
271
  elif isinstance(set, Constraint):
272
272
  df = set.data.select(set.dimensions_unsafe)
273
273
  elif isinstance(set, SupportsMath):
274
- df = (
275
- set.to_expr()
276
- .data.drop(RESERVED_COL_KEYS, strict=False)
277
- .unique(maintain_order=True)
278
- )
274
+ df = set.to_expr().data.drop(RESERVED_COL_KEYS).unique(maintain_order=True)
279
275
  elif isinstance(set, pd.Index):
280
276
  df = pl.from_pandas(pd.DataFrame(index=set).reset_index())
281
277
  elif isinstance(set, pd.DataFrame):
@@ -1263,7 +1259,7 @@ class Variable(ModelElementWithId, SupportsMath, SupportPolarsMethodMixin):
1263
1259
  )
1264
1260
 
1265
1261
  def to_expr(self) -> Expression:
1266
- return self._new(self.data.drop(SOLUTION_KEY, strict=False))
1262
+ return self._new(self.data.drop(SOLUTION_KEY))
1267
1263
 
1268
1264
  def _new(self, data: pl.DataFrame):
1269
1265
  e = Expression(data.with_columns(pl.lit(1.0).alias(COEF_KEY)))
@@ -1341,5 +1337,5 @@ class Variable(ModelElementWithId, SupportsMath, SupportPolarsMethodMixin):
1341
1337
  data = expr.data.rename({dim: "__prev"})
1342
1338
  data = data.join(
1343
1339
  wrapped, left_on="__prev", right_on="__next", how="inner"
1344
- ).drop(["__prev", "__next"], strict=False)
1340
+ ).drop(["__prev", "__next"])
1345
1341
  return expr._new(data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyoframe
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Blazing fast linear program interface
5
5
  Author-email: Bravos Power <dev@bravospower.com>
6
6
  Project-URL: Homepage, https://bravos-power.github.io/pyoframe/
@@ -15,7 +15,7 @@ Classifier: Natural Language :: English
15
15
  Requires-Python: >=3.8
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: polars
18
+ Requires-Dist: polars==0.20.27
19
19
  Requires-Dist: numpy
20
20
  Requires-Dist: pyarrow
21
21
  Requires-Dist: pandas
@@ -1,4 +1,4 @@
1
- polars
1
+ polars==0.20.27
2
2
  numpy
3
3
  pyarrow
4
4
  pandas
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes