Skip to content

Commit

Permalink
Fix typo in docstring and fix incorrect type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwilliamson committed Jun 4, 2021
1 parent 1c3e1b6 commit 2d55ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/adjoint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def validate_and_update_design(
Args:
design_regions: List of mpa.DesignRegion,
design_variables: Iterable with numpy arrays represending design variables.
design_variables: Iterable with numpy arrays representing design variables.
Raises:
ValueError if the validation of dimensions fails.
Expand Down Expand Up @@ -168,7 +168,7 @@ def validate_and_update_design(


def create_adjoint_sources(
monitors: ObjectiveQuantity,
monitors: Iterable[ObjectiveQuantity],
monitor_values_grad: onp.ndarray) -> List[mp.Source]:
monitor_values_grad = onp.asarray(monitor_values_grad,
dtype=onp.complex128)
Expand Down

0 comments on commit 2d55ad5

Please sign in to comment.