Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use numpy.isclose to compare array Quantities
The existing assertArrayNear method was causing units to be stripped from the array Quantities. Avoiding numpy.asarray conversions and using numpy.isclose prevents that from happening.
- Loading branch information
1 parent
09faa1e
commit e4bd04f
Showing
1 changed file
with
53 additions
and
37 deletions.
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