Skip to content

Commit

Permalink
lower the tolerance in unit tests of adjoint gradient involving a mod…
Browse files Browse the repository at this point in the history
…e source without dispersion (#2324)
  • Loading branch information
oskooi authored Dec 1, 2022
1 parent 391e7c5 commit 7adcc84
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 110 deletions.
2 changes: 1 addition & 1 deletion python/adjoint/optimization_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __call__(
need_value: bool = True,
need_gradient: bool = True,
beta: float = None,
) -> Tuple[List[float], List[float]]:
) -> Tuple[List[np.ndarray], List[List[np.ndarray]]]:
"""Evaluate value and/or gradient of objective function."""
if rho_vector:
self.update_design(rho_vector=rho_vector, beta=beta)
Expand Down
Loading

0 comments on commit 7adcc84

Please sign in to comment.