summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Support for babel > 2.8developHernan2021-10-272-3/+16
| | | | Close #1400, #1219 and #1296.
* Implemented constants overhaulHernan2021-10-264-57/+86
| | | | | | | | | | | | | | | | | | | | | 1. A new property `contants` is added to the registry. 2. This property is just a reference to the `constants` Group. 3. This group is populated using the @group directive in the definitions file. 4. Minor changes to Group and System __getattr__ This change is fully backwards compatible: ```python >>> ureg.speed_of_light <Unit('speed_of_light')> >>> 1 * ureg.speed_of_light <Quantity(1, 'speed_of_light')> >>> ureg.sys.imperial.speed_of_light <Quantity(3.27857019e+08, 'yard / second')> >>> ureg.constants.speed_of_light # if the current system is 'mks' <Quantity(2.99792458e+08, 'meter / second')> ``` Close #1078
* Back to development: 0.19Hernan2021-10-262-1/+7
|
* Preparing release 0.180.18Hernan2021-10-262-2/+2
|
* Updated CHANGESHernan2021-10-261-2/+11
|
* Merge pull request #1375 from keewis/format-docsJules Chéron2021-10-095-1/+128
|\ | | | | string formatting guide
| * Merge branch 'master' into format-docskeewis2021-10-038-49/+108
| |\
| * | try to set the language to noneKeewis2021-09-031-1/+1
| | |
| * | try code-blockKeewis2021-09-031-1/+1
| | |
| * | move to an extra blockKeewis2021-09-031-2/+2
| | |
| * | another attemptKeewis2021-09-031-0/+2
| | |
| * | convert back to a literal blockKeewis2021-09-032-5/+2
| | |
| * | upgrade sphinxKeewis2021-09-031-0/+1
| | |
| * | don't specify the languageKeewis2021-08-301-1/+4
| | |
| * | add more detailsKeewis2021-08-301-1/+2
| | |
| * | typoKeewis2021-08-301-1/+1
| | |
| * | rewrite the quantity format docsKeewis2021-08-301-5/+3
| | |
| * | rewrite the unit format docsKeewis2021-08-301-10/+20
| | |
| * | Merge branch 'master' into format-docsKeewis2021-08-302-3/+4
| |\ \
| * | | update CHANGESKeewis2021-08-231-0/+1
| | | |
| * | | wordingKeewis2021-08-231-0/+2
| | | |
| * | | extend the intersphinx settingsKeewis2021-08-231-1/+7
| | | |
| * | | describe the structure of quantity formatsKeewis2021-08-231-4/+11
| | | |
| * | | move the unit format spec description into its own sectionKeewis2021-08-231-0/+2
| | | |
| * | | add quantity format spec examplesKeewis2021-08-231-0/+12
| | | |
| * | | document the quantity modifierKeewis2021-08-231-5/+5
| | | |
| * | | enable napoleon type preprocessingKeewis2021-08-231-0/+4
| | | |
| * | | add the ipython dependencyKeewis2021-08-211-0/+1
| | | |
| * | | fix the tableKeewis2021-08-211-5/+5
| | | |
| * | | first draft of the format docsKeewis2021-08-213-0/+80
| | | |
* | | | Merge pull request #1371 from keewis/custom-formatsJules Chéron2021-10-097-38/+186
|\ \ \ \ | |_|_|/ |/| | | custom unit formats
| * | | convert to a code blockKeewis2021-08-181-9/+11
| | | |
| * | | preprocess the default formatKeewis2021-08-181-3/+3
| | | |
| * | | fix the expected resultKeewis2021-08-181-1/+1
| | | |
| * | | preprocess the spec for use in `format_unit`Keewis2021-08-181-2/+3
| | | |
| * | | typoKeewis2021-08-181-1/+1
| | | |
| * | | also pass the registry in `Measurement.__format__`Keewis2021-08-181-1/+1
| | | |
| * | | explicitly pass the registry to `format_unit`Keewis2021-08-184-21/+30
| | | |
| * | | extract the custom flags before passing them to the unit formatterKeewis2021-08-172-1/+12
| | | |
| * | | don't preprocess the unit specKeewis2021-08-171-2/+3
| | | |
| * | | move the siunitx code to the appropriate formatting functionKeewis2021-08-172-11/+2
| | | |
| * | | add a test to check whether custom formats work with unitsKeewis2021-08-171-0/+13
| | | |
| * | | use a different name as exampleKeewis2021-08-171-2/+2
| | | |
| * | | report the conflicting format nameKeewis2021-08-171-1/+1
| | | |
| * | | expose `register_unit_format`Keewis2021-08-171-1/+2
| | | |
| * | | docstring for `register_unit_format`Keewis2021-08-171-0/+28
| | | |
| * | | allow passing other options to `formatter`Keewis2021-08-171-8/+14
| | | |
| * | | add back `_FORMATS` so `Measurement.__format__` does not breakKeewis2021-08-171-0/+47
| | | |
| * | | rename _FORMATS to _FORMATTERSKeewis2021-08-171-7/+7
| | | |
| * | | typoKeewis2021-08-161-1/+1
| | | |