Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop use of use_signal_handling=False due to changes in Pyomo #444

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mpisppy/spopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def _vb(msg):
if (sputils.is_persistent(s._solver_plugin)):
solve_keyword_args["save_results"] = False
elif disable_pyomo_signal_handling:
solve_keyword_args["use_signal_handling"] = False
# solve_keyword_args["use_signal_handling"] = False
pass

try:
results = s._solver_plugin.solve(s,
Expand Down
2 changes: 1 addition & 1 deletion mpisppy/utils/listener_util/listener_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# And if having the file named listener_util with a class named
# Synchronizer makes your head hurt, that's good. Get used to it.
"""
To avoid errors from Pyomo use,
Prior to October 2024, to avoid errors from Pyomo we used:
solve_keyword_args["use_signal_handling"] = False
"""
import numpy as np
Expand Down
Loading