Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #165 #415

Merged
merged 11 commits into from
May 15, 2023
Merged

Resolve #165 #415

merged 11 commits into from
May 15, 2023

Conversation

bwohlberg
Copy link
Collaborator

@bwohlberg bwohlberg commented May 9, 2023

Resolve #165 and modify Sphinx configuration to avoid expansion of the much longer definition of DType from making parts of the docs unreadable. Also introduce new TypeAlias declaration in scico.typing and add a support function for use in future example scripts.

@bwohlberg bwohlberg added documentation Improvements or additions to documentation examples Pertaining to SCICO examples improvement Improvement of existing code, including addressing of omissions or inconsistencies labels May 9, 2023
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #415 (eb7adf4) into main (8b27075) will decrease coverage by 0.01%.
The diff coverage is 96.00%.

@@            Coverage Diff             @@
##             main     #415      +/-   ##
==========================================
- Coverage   94.85%   94.84%   -0.01%     
==========================================
  Files          83       83              
  Lines        5265     5281      +16     
==========================================
+ Hits         4994     5009      +15     
- Misses        271      272       +1     
Flag Coverage Δ
unittests 94.84% <96.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
scico/typing.py 94.11% <90.00%> (-5.89%) ⬇️
scico/examples.py 100.00% <100.00%> (ø)
scico/linop/_diff.py 98.30% <100.00%> (ø)

Comment on lines 385 to 390
DType: ":obj:`~scico.typing.DType`",
Optional[DType]: ":obj:`~typing.Optional`\ [\ :obj:`~scico.typing.DType`\ ]",
Union[DType, Sequence[DType]]: (
":obj:`~typing.Union`\ [\ :obj:`~scico.typing.DType`\ , "
":obj:`~typing.Sequence`\ [\ :obj:`~scico.typing.DType`\ ]]"
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it, you have to add each type that uses DType here. Correct? Perhaps add a comment along the lines of "add new types here".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, correct. Good point -- will do.

@bwohlberg bwohlberg merged commit 3caa0f3 into main May 15, 2023
@bwohlberg bwohlberg deleted the brendt/misc branch May 15, 2023 23:27
Michael-T-McCann pushed a commit that referenced this pull request May 19, 2023
* Resolve #261 (#416)

* Improve markup for numpy.float32 etc. as well as some other docs improvements

* Add note to style docs

* Minor docs edit

* Some markup changes

* Resolve #165 (#415)

* Add function for computing gaussian distribution

* Typing fix and better default sigma

* Address #165

* Fix docs typos and suppress apparently-spurious type error

* Target clean also cleans _autosummary directory

* Use new TypeAlias declaration

* Suppress type error

* Avoid pollution of docs with excessively long type alias definition

* Add comment as per PR review suggestion

* Resolve #83 (#417)

* Attempt to remove rtd edit on github button

* Bump jaxlib/jax max versions

* Remove function no longer in jax.numpy

* Resolve #377 (#418)

* Fix markup

* Docstring edits

* Change sphinx theme

* Docstring fixes

* Theme customization

* Clean up

* Fix inheritance diagram insertion

* Resolve document not in any toctree warning for index.ipynb

* Clean up

* Update submodule

* Adjust css

* Avoid problems with dark mode

* Add version number in sidebar

* Change inheritance diagram color scheme

* Clean up

* Correct path to docs_requirements

---------

Co-authored-by: Thilo Balke <[email protected]>

* Implement PR review recommendations

---------

Co-authored-by: Thilo Balke <[email protected]>
Michael-T-McCann added a commit that referenced this pull request May 19, 2023
* Rename test file

* Add function and tests

* Replace try-and-see code with new function

* Implement #419 review recommendations (#421)

* Resolve #261 (#416)

* Improve markup for numpy.float32 etc. as well as some other docs improvements

* Add note to style docs

* Minor docs edit

* Some markup changes

* Resolve #165 (#415)

* Add function for computing gaussian distribution

* Typing fix and better default sigma

* Address #165

* Fix docs typos and suppress apparently-spurious type error

* Target clean also cleans _autosummary directory

* Use new TypeAlias declaration

* Suppress type error

* Avoid pollution of docs with excessively long type alias definition

* Add comment as per PR review suggestion

* Resolve #83 (#417)

* Attempt to remove rtd edit on github button

* Bump jaxlib/jax max versions

* Remove function no longer in jax.numpy

* Resolve #377 (#418)

* Fix markup

* Docstring edits

* Change sphinx theme

* Docstring fixes

* Theme customization

* Clean up

* Fix inheritance diagram insertion

* Resolve document not in any toctree warning for index.ipynb

* Clean up

* Update submodule

* Adjust css

* Avoid problems with dark mode

* Add version number in sidebar

* Change inheritance diagram color scheme

* Clean up

* Correct path to docs_requirements

---------

Co-authored-by: Thilo Balke <[email protected]>

* Implement PR review recommendations

---------

Co-authored-by: Thilo Balke <[email protected]>

---------

Co-authored-by: Brendt Wohlberg <[email protected]>
Co-authored-by: Thilo Balke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples Pertaining to SCICO examples improvement Improvement of existing code, including addressing of omissions or inconsistencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make scico.DType type more specific
2 participants