summaryrefslogtreecommitdiff
path: root/docs/tutorial.rst
Commit message (Collapse)AuthorAgeFilesLines
* Typo and caseMatt Hall2021-06-031-2/+2
| | | | - Fixed typo "plicking" instead of "pickling". - Changed case of "Converting to different units" subhead to match the others, which all use sentence case (except when naming Pint classes).
* Fix the docsHernan2020-09-071-3/+3
|
* Change html repr away from latex to a Sparse/Dask-like reprJon Thielen2020-08-161-4/+4
|
* move some content from tutorial to new pageClark Willison2020-07-131-101/+51
| | | | | | | | | | | | this commit adds a new page to the docs about the various ways of defining quantity objects in Pint, and moves some of the content from the tutorial in there not certain if it's a better arrangement, the theory is that a more concise tutorial with links to more detailed pages might get users up and running faster very open to suggestions though
* various tutorial improvements: broken links, grammarClark Willison2020-07-131-56/+84
| | | | | | | | | | giving the tutorial page on the docs a once-over for broken Sphinx links also: - rewrote some sections for grammar - changed (added) some section titles - wrapped some long lines
* skip doctests that rely on missing dependenciesClark Willison2020-07-111-0/+1
| | | | | | | | some configurations in Travis skip optional dependencies, which causes the doctests that rely on them to fail. This fixes that by checking for those dependencies and skipping the affected doctests with :skipif:
* fix doctest errors in most .rst docsClark Willison2020-06-171-27/+34
| | | | | | | | | | | | | | | | | | | | | | doctests updated for new 9-digit Quantity().__repr__() added dependency on Serialize to requirements_docs.txt in systems.rst: three errors remain, one may be a regression, the others I'm not qualified to comment on in nonmult.rst: some issues around floating point estimation are made more robust by using print() seems like Quantity().__repr__() changed since these tests were written, and could benefit from some floating-point truncation in pitheorem.rst the only error was dictionary ordering, which is now deterministic in python3.7, but may still cause issues down the line no doctests in getting.rst, marked all as code blocks
* Updates to DocumentationPorcelain Mouse2020-04-041-2/+5
|
* Fixed bug with to_compactFranchuFranchu2020-03-211-0/+1
|
* Make `__str__` and `__format__` locale awareHernan2020-02-111-1/+18
| | | | | | | | | | | | | | | | | With this commit, all string formatting operations are locale aware >>> ureg.set_fmt_locale('fr_FR') >>> str(accel) '1.3 mètre par seconde²' >>> "%s" % accel '1.3 mètre par seconde²' >>> "{}".format(accel) '1.3 mètre par seconde²' It should not break any code as the default locale value for the Registry is `None` (meaning do not localize). Close #984
* Implement parse_pattern functionAbdurrahmaan Iqbal2020-02-061-9/+41
|
* Added tests for fmt_localeHernan2019-12-211-0/+4
|
* Remove metaclass backportGuido Imperiale2019-12-041-4/+0
|
* Sphinx fixesGuido Imperiale2019-09-131-2/+2
|
* Added f-string documentation as suggested by @cpascualgood5972019-08-061-1/+18
|
* restore numpy formatting docsgood5972019-08-061-0/+11
|
* Updated documentation for string formatting with info on abbreviated units ↵good5972019-07-241-11/+13
| | | | and scientific notation - also updated the abbreviation for becquerel from 'becquerel' to 'Bq'
* Add documentation about numpy array formattingJules2019-02-051-0/+11
|
* Documented `to_compact`Jonathan Wheeler2018-07-191-0/+12
|
* Merge #557bors[bot]2017-10-241-0/+18
|\ | | | | | | | | | | 557: Improve documentation for string parsing rules r=hgrecco a=dalito How pint interprets strings with a mixture of numbers and units has led to confusion, see #555. This adds a note and example to clarify pint´s rule.
| * Improve documentation for string parsing rulesDavid Linke2017-10-071-0/+18
| | | | | | How pint interprets strings with a mixture of numbers and units has led to confusion, see #555. This adds a note and example to clarify pint´s rule.
* | Drop support for EOL Python 2.6Hugo2017-10-191-9/+4
|/
* update docs and tests for auto_reduce_dimensionsBen Loer2017-08-171-0/+22
|
* Merge #502bors[bot]2017-04-161-1/+10
|\ | | | | | | | | 502: Preparation for 0.8 release r=hgrecco
| * Improved docsHernan Grecco2017-04-161-1/+10
| |
* | grammar in note about not using evalGeordie McBain2017-04-101-2/+2
|/
* Improved tutorialHernan Grecco2016-08-031-5/+9
|
* fix tutorial doctestEndolith2016-07-311-1/+1
|
* Updated tutorialHernan Grecco2016-05-051-1/+1
|
* Fix testsHernan Grecco2016-04-281-2/+2
|
* Update tutorial.rstJesterEE2016-03-251-9/+5
| | | Few typos and syntax errors for previous commit.
* Update tutorial.rstJesterEE2016-03-251-2/+35
| | | Added information on parsing strings and dimensionless parsing. Added doctests where appropriate.
* Added doctest to testsuiteHernan Grecco2016-02-141-1/+3
|
* Improved docs for testingHernan Grecco2016-02-131-1/+2
|
* Removed security warning thanks to the new evalHernan Grecco2016-02-101-3/+4
| | | | Close #325
* Improved documentationHernan Grecco2016-02-091-4/+6
|
* Merge branch 'master' of git://github.com/CD3/pint into CD3-masterHernan Grecco2015-12-221-0/+9
|\
| * Updated documentation for siunitx support.C.D. Clark III2015-12-071-0/+9
| | | | | | | | Added siunitx example to the tutorial in the documentation.
* | Update tutorial.rstsenyai2015-11-271-1/+1
|/ | | | | | | | >>> o = object() >>> id(o) 30969712 >>> id(o) is id(o) False >>>
* Fixed some typos in the documentation; removed trailing slashes; broke some ↵Martin Thoma2015-04-041-14/+28
| | | | lines to make diffs easier; changed some hanging indentation according to PEP8
* Document set_application_registryHernan Grecco2015-04-041-0/+6
| | | | Close #207
* Fixed typo in tutorial.rstAndrea Zonca2015-03-101-1/+1
|
* Added note about {} in Python 2.6Hernan Grecco2014-12-181-0/+6
|
* Added print(...) to pretty representation, Python 2 unicode noteRyan Dwyer2014-12-171-1/+5
|
* Corrected typo 'suffix with ~' to 'prefix with ~', and added an example ↵Ryan Dwyer2014-12-101-6/+9
| | | | showing ~ used as a pretty print prefix. Other grammar / wording smoothed over.
* Updated documentation with respect to new handling of non-multiplicative ↵David Linke2014-06-151-1/+0
| | | | | | quantities Few errors with respect to missing/wrong output in doctests were also fixed.
* Removed incorrect text from the tutorialHernan Grecco2014-05-261-1/+0
| | | | Close #149
* Fixed typos in comments and docsAna Krivokapic2014-05-261-1/+1
|
* Fix typo in tutorial string representation exampleEduard Bopp2014-03-291-2/+2
|
* Implemented __call__ for UnitRegistry as replacement for []Hernan Grecco2014-03-241-12/+31
| | | | | | getitem has been labeled as deprecated and we removed in 0.6. Close #106