-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tighten and tidy API, docs page per module and better tests
* Optonal args are now keyword only * Use of qantity aware type annotations * Doc refaactor - page per submodule * Fix bug in transform code * Add fft equivalence test
- Loading branch information
Showing
27 changed files
with
620 additions
and
456 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Optional parameters are now keyword only for the :mod:`xrayvision.transform`, :mod:`xrayvision.imaging` and :mod:`xrayvision.visibility` modules. | ||
Remove ``natural`` keyword in favour of ``scheme`` keyword which can be either 'natural' or 'uniform'. |
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 @@ | ||
Fix a bug where the x, y dimensions were not being treated consistently in :mod:`xrayvision.transform`. |
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 @@ | ||
Add per module reference pages, switch to documenting types using type annotations. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. _clean: | ||
|
||
Clean ('xrayvision.clean') | ||
************************** | ||
|
||
The ``clean`` submodule contains clean imaging methods. | ||
|
||
.. automodapi:: xrayvision.clean |
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,8 @@ | ||
.. _imaging: | ||
|
||
Imaging ('xrayvision.imaging') | ||
****************************** | ||
|
||
The ``imaging`` submodule contains functions to make map and images from visibilities. | ||
|
||
.. automodapi:: xrayvision.imaging |
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 |
---|---|---|
@@ -1,23 +1,15 @@ | ||
.. _reference: | ||
|
||
********* | ||
Reference | ||
********* | ||
|
||
.. automodapi:: xrayvision.visibility | ||
|
||
.. automodapi:: xrayvision.imaging | ||
|
||
.. automodapi:: xrayvision.transform | ||
|
||
.. automodapi:: xrayvision.clean | ||
|
||
.. automodapi:: xrayvision.mem | ||
|
||
.. automodapi:: xrayvision.utils | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:maxdepth: 1 | ||
|
||
clean | ||
imaging | ||
mem | ||
transform | ||
utils | ||
visibility | ||
|
||
../whatsnew/index |
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,8 @@ | ||
.. _mem: | ||
|
||
MEM ('xrayvision.mem') | ||
********************** | ||
|
||
The ``mem`` submodule contains the Maximum Entropy methods. | ||
|
||
.. automodapi:: xrayvision.mem |
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,8 @@ | ||
.. _transform: | ||
|
||
Transform ('xrayvision.transform') | ||
********************************** | ||
|
||
The ``transform`` submodule forward and reverse transforms. | ||
|
||
.. automodapi:: xrayvision.transform |
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,8 @@ | ||
.. _utils: | ||
|
||
Utils ('xrayvision.utils') | ||
************************** | ||
|
||
The ``utils`` submodule contains utility functions. | ||
|
||
.. automodapi:: xrayvision.utils |
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,8 @@ | ||
.. _visibility: | ||
|
||
Visibility ('xrayvision.visibility') | ||
************************************ | ||
|
||
The ``visibility`` submodule contains generic visibility classes. | ||
|
||
.. automodapi:: xrayvision.visibility |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
||
try: | ||
from xrayvision.version import __version__ | ||
from xrayvision.version import __version__ # type: ignore | ||
except ImportError: | ||
__version__ = "unknown" | ||
__all__ = [] | ||
|
||
from pkg_resources import resource_filename | ||
|
||
SAMPLE_RHESSI_VISIBILITIES = resource_filename('xrayvision', 'data/hsi_visibili_20131028_0156_20131028_0200_6_12.fits') |
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.