MilesCranmer commited on
Commit
58b38f6
1 Parent(s): c3134ec

Automatically adapt to terminal width

Browse files
Files changed (2) hide show
  1. pysr/sr.py +0 -7
  2. pysr/version.py +1 -1
pysr/sr.py CHANGED
@@ -1048,12 +1048,6 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
1048
  una_constraints = [constraints[op] for op in unary_operators]
1049
  bin_constraints = [constraints[op] for op in binary_operators]
1050
 
1051
- try:
1052
- # TODO: is this needed since Julia now prints directly to stdout?
1053
- term_width = shutil.get_terminal_size().columns
1054
- except:
1055
- _, term_width = subprocess.check_output(["stty", "size"]).split()
1056
-
1057
  if not already_ran:
1058
  Main.eval("using Pkg")
1059
  io = "devnull" if self.params["update_verbosity"] == 0 else "stderr"
@@ -1143,7 +1137,6 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
1143
  min([self.params["batchSize"], len(X)]) if batching else len(X)
1144
  ),
1145
  mutationWeights=mutationWeights,
1146
- terminal_width=int(term_width),
1147
  probPickFirst=self.params["tournament_selection_p"],
1148
  ns=self.params["tournament_selection_n"],
1149
  # These have the same name:
 
1048
  una_constraints = [constraints[op] for op in unary_operators]
1049
  bin_constraints = [constraints[op] for op in binary_operators]
1050
 
 
 
 
 
 
 
1051
  if not already_ran:
1052
  Main.eval("using Pkg")
1053
  io = "devnull" if self.params["update_verbosity"] == 0 else "stderr"
 
1137
  min([self.params["batchSize"], len(X)]) if batching else len(X)
1138
  ),
1139
  mutationWeights=mutationWeights,
 
1140
  probPickFirst=self.params["tournament_selection_p"],
1141
  ns=self.params["tournament_selection_n"],
1142
  # These have the same name:
pysr/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.7.9"
2
  __symbolic_regression_jl_version__ = "0.7.14"
 
1
+ __version__ = "0.7.10"
2
  __symbolic_regression_jl_version__ = "0.7.14"