pyoframe 0.0.7__py3-none-any.whl → 0.0.8__py3-none-any.whl

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.
pyoframe/core.py CHANGED
@@ -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,7 +1,7 @@
1
1
  pyoframe/__init__.py,sha256=D7HHQPy2Me-LLyfPCcSE74dn83PeMK3aOby7i7oiLTs,507
2
2
  pyoframe/_arithmetic.py,sha256=riyN2JC-BnOgTIxGfXKIS-X_p7zm8JaKrLk_KDwKAAw,9046
3
3
  pyoframe/constants.py,sha256=olao24mkzQfwTlc5o4rQ-AOOTytmtVqNCFwJIc8zbds,7169
4
- pyoframe/core.py,sha256=TwpWPYl1K5qDSFAX9yfabFKpahxgqoa2eL0zmkP91dI,51247
4
+ pyoframe/core.py,sha256=bTaPOfkgIs-9wrXZ3REthNI7y8oj4S9VLe7xKIye7wc,51139
5
5
  pyoframe/io.py,sha256=7bd_oKD8EZsuM0ONUAA9BDFSFvUoXLWGXDhnUqMde8o,5235
6
6
  pyoframe/io_mappers.py,sha256=Op5451Yo4gNa-2BiPPCAjPYdFLo8jIeKHCYXUcGPRug,7385
7
7
  pyoframe/model.py,sha256=xod3hSf__WWDy0V9pao9wPlQTc7-7x56FJoKKidsMbw,3768
@@ -11,8 +11,8 @@ pyoframe/objective.py,sha256=JzuyMAQZ2OxEoAaK-splWwZei2hHPbCLdG-X2-yRkD0,1338
11
11
  pyoframe/solvers.py,sha256=yf-hzUHDvKgmIHk2FobmygzE9-LnOzTBL5ps-nqGo8I,11875
12
12
  pyoframe/user_defined.py,sha256=UWZSTpFj0a8n1_RHwC8Ubwqr4FO-gRPBqqfNUut1IZg,1717
13
13
  pyoframe/util.py,sha256=KJubFV66E7WPI5UhcuUNsVwCm7WOcQBiLN1af1MAAgA,9647
14
- pyoframe-0.0.7.dist-info/LICENSE,sha256=L1pXz6p_1OW5XGWb2UCR6PNu6k3JAT0XWhi8jV0cuRg,1137
15
- pyoframe-0.0.7.dist-info/METADATA,sha256=zKjbfnByq8u6GRauys4BbRuWjL6SGiCmd9SBhwTDFCE,3445
16
- pyoframe-0.0.7.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
17
- pyoframe-0.0.7.dist-info/top_level.txt,sha256=10z3OOJSVLriQ0IrFLMH8CH9zByugPWolqhlHlkNjV4,9
18
- pyoframe-0.0.7.dist-info/RECORD,,
14
+ pyoframe-0.0.8.dist-info/LICENSE,sha256=L1pXz6p_1OW5XGWb2UCR6PNu6k3JAT0XWhi8jV0cuRg,1137
15
+ pyoframe-0.0.8.dist-info/METADATA,sha256=DArNyugaZiosDrMkudw1t6CuJeSFk3wW5eHmByBKDzw,3455
16
+ pyoframe-0.0.8.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
17
+ pyoframe-0.0.8.dist-info/top_level.txt,sha256=10z3OOJSVLriQ0IrFLMH8CH9zByugPWolqhlHlkNjV4,9
18
+ pyoframe-0.0.8.dist-info/RECORD,,