Skip to content

Commit

Permalink
remove new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Aug 21, 2024
1 parent 8b5b787 commit bccf5fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions desc/optimize/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def optimize( # noqa: C901 - FIXME: simplify this

# put a divider
w_divider = 50
print("\n{:=<{}}\n".format("", PRINT_WIDTH + w_divider))
print("{:=<{}}".format("", PRINT_WIDTH + w_divider))

print(f"{'Start --> End':>{PRINT_WIDTH+21}}")
objective.print_value(objective.x(*state), objective.x(*state_0))
Expand All @@ -371,7 +371,7 @@ def optimize( # noqa: C901 - FIXME: simplify this
args0_for_this_con = [things0[ind] for ind in arg_inds_for_this_con]
con.print_value(con.xs(*args_for_this_con), con.xs(*args0_for_this_con))

print("\n{:=<{}}\n".format("", PRINT_WIDTH + w_divider))
print("{:=<{}}".format("", PRINT_WIDTH + w_divider))

if copy:
# need to swap things and things0, since things should be unchanged
Expand Down
2 changes: 1 addition & 1 deletion desc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,4 +684,4 @@ def broadcast_tree(tree_in, tree_out, dtype=int):
raise ValueError("trees must be nested lists of dicts")


PRINT_WIDTH = 60
PRINT_WIDTH = 60 # current longest name is BootstrapRedlConsistency with pre-text

0 comments on commit bccf5fd

Please sign in to comment.