Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 26, 2024
1 parent 6df9b10 commit c5bbece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meteor/scripts/compute_difference_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
help=(
"How to find a TV regularization weight (lambda). Optimize means pick maximum "
"negentropy. Default: `optimize`."
)
),
)
self.add_argument(
"-l",
Expand Down
5 changes: 2 additions & 3 deletions meteor/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ def optimize_over_explicit_values(
A list or array of argument values to evaluate.
"""
for argument_test_value in arguments_to_scan:
argument_test_value = float(argument_test_value)
objective_value = self._update_optima(argument_test_value)
self.values_evaluated.append(argument_test_value)
self.objective_at_values.append(objective_value)
self.values_evaluated.append(float(argument_test_value))
self.objective_at_values.append(float(objective_value))

def optimize_with_golden_algorithm(
self,
Expand Down

0 comments on commit c5bbece

Please sign in to comment.