Skip to content

Commit

Permalink
switch model_builder python from numpy to pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 9, 2023
1 parent 1ff59b0 commit 3acda0a
Show file tree
Hide file tree
Showing 11 changed files with 2,391 additions and 4,219 deletions.
26 changes: 1 addition & 25 deletions ortools/linear_solver/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ py_test(
"//ortools/linear_solver/testdata:large_model.mps.gz",
"//ortools/linear_solver/testdata:maximization.mps",
],
python_version = "PY3",
deps = [
":model_builder_helper",
":model_builder_numbers",
Expand Down Expand Up @@ -65,6 +64,7 @@ py_library(
":model_builder_helper",
":model_builder_numbers",
requirement("numpy"),
requirement("pandas"),
"//ortools/linear_solver:linear_solver_py_pb2",
],
)
Expand All @@ -76,32 +76,8 @@ py_test(
"//ortools/linear_solver/testdata:maximization.mps",
"//ortools/linear_solver/testdata:small_model.lp",
],
python_version = "PY3",
deps = [
":model_builder",
":model_builder_helper",
":model_builder_numbers",
requirement("absl-py"),
requirement("numpy"),
],
)

py_library(
name = "pandas_model",
srcs = ["pandas_model.py"],
deps = [
":model_builder_helper",
requirement("numpy"),
requirement("pandas"),
"//ortools/linear_solver:linear_solver_py_pb2",
],
)

py_test(
name = "pandas_model_test",
srcs = ["pandas_model_test.py"],
deps = [
":pandas_model",
requirement("absl-py"),
requirement("pandas"),
"//ortools/linear_solver:linear_solver_py_pb2",
Expand Down
Loading

0 comments on commit 3acda0a

Please sign in to comment.