-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1638 from hgrecco/develop
Improved the API documentation to avoid breaking intersphinx
- Loading branch information
Showing
31 changed files
with
463 additions
and
200 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
Advanced Guides | ||
=============== | ||
|
||
Pint contains some useful and fun feature. You will find them here. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:hidden: | ||
|
||
performance | ||
serialization | ||
defining | ||
wrapping | ||
measurement | ||
pitheorem | ||
currencies | ||
custom-registry-class |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
docs/user/serialization.rst → docs/advanced/serialization.rst
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,5 +1,3 @@ | ||
.. _serialization: | ||
|
||
|
||
Serialization | ||
============= | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,70 @@ | ||
|
||
Base API | ||
======== | ||
|
||
.. currentmodule:: pint | ||
|
||
|
||
These are the classes, exceptions and functions that you will most likely use. | ||
|
||
|
||
Most important classes | ||
---------------------- | ||
|
||
.. autoclass:: UnitRegistry | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. autoclass:: Quantity | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: Unit | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: Measurement | ||
:members: | ||
:inherited-members: | ||
|
||
Exceptions and warnings | ||
----------------------- | ||
|
||
.. autoexception:: PintError | ||
:members: | ||
|
||
.. autoexception:: DefinitionSyntaxError | ||
:members: | ||
|
||
.. autoexception:: LogarithmicUnitCalculusError | ||
:members: | ||
|
||
.. autoexception:: DimensionalityError | ||
:members: | ||
|
||
.. autoexception:: OffsetUnitCalculusError | ||
:members: | ||
|
||
.. autoexception:: RedefinitionError | ||
:members: | ||
|
||
.. autoexception:: UndefinedUnitError | ||
:members: | ||
|
||
.. autoexception:: UnitStrippedWarning | ||
:members: | ||
|
||
|
||
Sharing registry among packages | ||
------------------------------- | ||
|
||
.. autofunction:: get_application_registry | ||
.. autofunction:: set_application_registry | ||
|
||
Other functions | ||
--------------- | ||
|
||
.. autofunction:: formatter | ||
.. autofunction:: register_unit_format | ||
.. autofunction:: pi_theorem | ||
.. autoclass:: Context |
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,45 @@ | ||
API facets reference | ||
==================== | ||
|
||
Registry functionality is divided into facet. Each provides classes and functions | ||
specific to a particular purpose. They expose at least a Registry, and in certain | ||
cases also a Quantity, Unit and other objects. | ||
|
||
The default UnitRegistry inherits from all of them. | ||
|
||
|
||
.. automodule:: pint.facets.plain | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.nonmultiplicative | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.formatting | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.numpy | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.dask | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.measurement | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.group | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.system | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System | ||
|
||
.. automodule:: pint.facets.context | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System |
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,10 @@ | ||
API reference | ||
============== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
base | ||
specific | ||
facets |
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,44 @@ | ||
Specific API | ||
============ | ||
|
||
These are the classes, exceptions and functions that you will use if you need | ||
to dig deeper into Pint or develop Pint. | ||
|
||
|
||
.. automodule:: pint.babel_names | ||
:members: | ||
|
||
.. automodule:: pint.compat | ||
:members: | ||
|
||
.. automodule:: pint.converters | ||
:members: | ||
|
||
.. automodule:: pint.definitions | ||
:members: | ||
|
||
.. automodule:: pint.errors | ||
:members: | ||
|
||
.. automodule:: pint.formatting | ||
:members: | ||
|
||
.. automodule:: pint.matplotlib | ||
:members: | ||
|
||
.. automodule:: pint.pint_eval | ||
:members: | ||
|
||
.. automodule:: pint.registry | ||
:members: | ||
:exclude-members: Quantity, Unit, Measurement, Group, Context, System, UnitRegistry | ||
|
||
.. automodule:: pint.registry_helpers | ||
:members: | ||
|
||
.. automodule:: pint.testing | ||
:members: | ||
|
||
.. automodule:: pint.util | ||
:members: | ||
:exclude-members: Unit |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.