-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add helper `_separators` to determine string separators that keep a `repr` string within a given line width - split repr string rendering into two functions, one to determine the parts to be printed and one to compile the final string (with separators) - `attribute_repr_string` helper to class attributes - `element_repr_string` helper to print space elements - make repr printing of product space elements more consistent - improve default repr of `Operator` (now actually good by default, but unspecific) - use Numpy's print options as a single point to configure printing - add doctests to lots of `__repr__` methods Further miscellaneous changes: - fix bug of `uniform_discr_fromdiscr` ignoring dtype - sort imports using the `isort` tool (mode `-m 4`) - add `asweighted` to base_tensors to make weighted and unweighted spaces compatible in tensor operators - remove base classes for operator and adjoint in favor of inner adjoint classes (less code) - make most default operators take `domain` and `range` and implement the corresponding adjoints/inverses etc. - implement `noise_array` for product spaces that are not power spaces - remove the `almost_equal` test util - improve a number of doctests (use `odl.` calls, better names etc.) - make comparison of arrays in tests faster - implement broadcasting of shapes (M, N) and (N,) in product spaces - remove some remaining doc glitches, mostly `FnBase` TODO: - go through rest of the library - replace `almost_equal` by `pytest.approx` - tests for pspace broadcasting - make `uniform_discr_fromdiscr` respect weighting - fix failing unit tests
- Loading branch information
Showing
37 changed files
with
2,680 additions
and
1,526 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,4 +90,7 @@ target/ | |
*.ipynb | ||
.ipynb_checkpoints | ||
|
||
# VS Code files | ||
.vscode/ | ||
|
||
# Documentation build files |
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
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
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
Oops, something went wrong.