mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 01:48:51 -06:00
Remove tuples from ConstraintFeatures
This commit is contained in:
@@ -36,3 +36,10 @@ class _RedirectOutput:
|
||||
) -> None:
|
||||
sys.stdout = self._original_stdout
|
||||
sys.stderr = self._original_stderr
|
||||
|
||||
|
||||
def _none_if_empty(obj: Any) -> Any:
|
||||
if len(obj) == 0:
|
||||
return None
|
||||
else:
|
||||
return obj
|
||||
|
||||
Reference in New Issue
Block a user