-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw error for when
Curve
is used for coil objectives (#1141)
Resolves #1020 The given example in #1020 uses a `FourierPlanarCurve` which actually results in a list of numpy arrays being created after going through `tree_flatten`. This PR gives a better error message, but I'm not sure if we can explicitly say that a `Curve` was inputted. If there is a `Curve` object in a `CoilSet` then there are already checks in the `CoilSet` class that throw an error.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters