-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove double-broadcasting, move examples/ to tests, refactoring
API: * Removed automatic "double broadcasting" from cross-track distance; users can do it themselves now. Docs: * Moved examples/ into the test suite for now. * Updated developer instructions in Readme. Refactoring: * Refactored usage of _validate() and _promote_shape(). * Used internal helper functions in more places instead of "raw" Numpy funcs. * Removed unnecessary keepdims=True usage in normalize(). * Improved normalize() performance with in-place operations, and optional inplace= kwarg. (TODO: convert to Numpy convention out= instead). * Improved type hints. * Renamed _dot_1d() to _dot_1d_scalar() and replaced np.dot() with less-ambiguous np.inner(). Dev: * Added more Hatch helper scripts. * Added an IPython startup script with hot reloading.
- Loading branch information
Showing
6 changed files
with
286 additions
and
272 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from IPython import get_ipython | ||
|
||
ipython = get_ipython() | ||
ipython.run_line_magic("reload_ext", "autoreload") | ||
ipython.run_line_magic("aimport", "nvector_lite") | ||
ipython.run_line_magic("autoreload", "2") |
Oops, something went wrong.