bors[bot]
2906e54141
Merge #533
...
533: Bug fixing and some Refactoring r=hgrecco
2017-06-28 01:15:41 +00:00
Hernan Grecco
5ca51a56a8
Merge branch 'master' into develop
2017-06-27 22:15:05 -03:00
Hernan Grecco
5d38ff0729
Properly implemnt skip check on check
2017-06-27 22:13:02 -03:00
Hernan Grecco
68585ea5e5
Test for Issue 532
2017-06-27 22:12:32 -03:00
Hernan Grecco
a78098e60d
Changed tests because check now always raises DimensionalityError not AttributeError
2017-06-27 22:11:46 -03:00
Hernan Grecco
905aa2e627
Allow dimensionality check for non Quantity arguments
2017-06-27 21:47:01 -03:00
Hernan Grecco
245b8ee84a
Put explicit comparison for shorter ureg.check args than values
...
A dimensionless UnitsContainer (which bool evaluates to false) is not the
same as non defined dimensional check
Fix #532
2017-06-27 21:43:58 -03:00
Hernan Grecco
be9b046553
Refactored NonMultiplicative._convert for clarity
2017-06-27 21:39:21 -03:00
Hernan Grecco
e1cf39b75e
Removed unnecessary if as the condition is always True
...
It was checked a few lines before
2017-06-23 01:44:57 -03:00
bors[bot]
3da8adaa51
Merge #286
...
286: Make Quantity and UnitContainer objects hashable. r=hgrecco
2017-06-15 01:45:27 +00:00
bors[bot]
562e433a44
Merge #527
...
527: Added [concentration] quantity, with molar units. Closes #526 . r=hgrecco
In addition I modified a test that had defined molar units locally, and added tags files to the .gitignore.
I think I ran all the tests but I wasn't quite sure how they were run, so it's possible I missed some, but in that case your CI should catch them. Additionally, I was unsure if the [concentration] def in line 76 will function properly, as [volume] is defined later in that file, but it didn't seem to cause any issues when I played with it.
Happy to make any necessary changes, of course.
2017-06-09 02:46:21 +00:00
Matthew McDermott
b2bccc153d
Added [concentration] quantity, molar units, modified a test that had defined molar units locally, and added tags files to the .gitignore.
2017-06-08 13:24:21 -04:00
Hernan Grecco
240349f2ee
Back to development: 0.9
2017-06-05 21:46:49 -03:00
Hernan Grecco
697834d17d
Preparing release 0.8.1
2017-06-05 21:45:31 -03:00
Hernan Grecco
7e895ea55c
Updated CHANGES
2017-06-05 21:43:38 -03:00
Hernan Grecco
30bc85e234
Merge branch 'develop' of github.com:hgrecco/pint into develop
2017-06-05 21:42:25 -03:00
Hernan Grecco
cd81135b78
Updated CHANGES
2017-06-05 21:41:45 -03:00
bors[bot]
6c8b0b8dc7
Merge #519
...
519: Add support for datetime math r=hgrecco
See #510
- add _Quantity.to_timedelta()
- modify addition and subtraction with datetimes to convert _Quantity instances to timedeltas before performing the operation
- add tests
2017-06-05 23:40:41 +00:00
bors[bot]
6e2b69ea32
Merge #524
...
524: Fix for Issue #523 r=hgrecco
Conversion to/from offset units was not checking for compatibility of dimensions.
A test for the issue was added.
2017-06-05 23:31:46 +00:00
David Linke
bf703493b2
Fix for Issue #523
...
Conversion to/from offset units was not checking for compatibility of dimensions.
A test for the issue has been added included.
2017-06-06 00:55:55 +02:00
Robert DeNeefe
e53ded91b5
add _Quantity.to_timedelta()
...
modify addition and subtraction with datetimes to convert _Quantity instances to timedeltas before performing the operation
add tests
2017-05-25 23:36:25 -05:00
bors[bot]
12f618e8ee
Merge #518
...
518: Fixed _repr_html_ in Python 2.7 r=hgrecco
There was a bug in ndarray_to_latex_parts when checking if the
format was a string.
Fix #512
2017-05-26 02:53:51 +00:00
Hernan Grecco
a4fe8177c8
Fixed _repr_html_ in Python 2.7
...
There was a bug in ndarray_to_latex_parts when checking if the
format was a string.
Fix #512
2017-05-25 23:51:02 -03:00
bors[bot]
d9d8cf581a
Merge #515
...
515: … r=hgrecco
See #500
BaseRegistry.auto_reduce_dimensions was added to configure whether to automatically reduce dimensionality. The reduction was implemented using decorators, one for inplace and one for not. The only operations wrapped were multiplication and division. Is this correct?
2017-05-23 20:59:52 +00:00
bors[bot]
53b02e82ed
Merge #513
...
513: add __contains__ to UnitsContainer r=hgrecco
See #447
2017-05-23 20:54:20 +00:00
Robert DeNeefe
65dd0b26cb
add optional __init__ arg auto_reduce_dimensions (defaults to False) to BaseRegistry
...
add reduce_dimensions and ireduce_dimensions method decorators
decorate_mul_div with reduce_dimensions and _imul_div with ireduce_dimensions
add tests
2017-05-23 14:58:02 -05:00
Robert DeNeefe
ed687f8405
add __contains__ to UnitsContainer
2017-05-22 21:52:22 -05:00
bors[bot]
4c5b373548
Merge #504
...
504: Trivial indentation reformat. r=hgrecco
This does not affect semantic of the code block.
2017-05-03 03:14:36 +00:00
postmasters
0002e948c4
Trivial indentation reformat.
...
This does not affect semantic of the code block.
2017-04-16 08:56:17 -07:00
bors[bot]
c89c51cf6b
Merge #503
...
503: Released 0.8 r=hgrecco
2017-04-16 04:32:03 +00:00
Hernan Grecco
988d6e71a5
Back to development: 0.9
2017-04-16 01:26:43 -03:00
Hernan Grecco
167d642622
Preparing release 0.8
2017-04-16 01:25:04 -03:00
bors[bot]
5f3460aa89
Merge #502
...
502: Preparation for 0.8 release r=hgrecco
2017-04-16 03:49:14 +00:00
Hernan Grecco
8a016bbd5f
Improved docs
2017-04-16 00:48:12 -03:00
Hernan Grecco
979e5cc65e
Removed rogue print
2017-04-16 00:47:14 -03:00
Hernan Grecco
589b498e56
Added changes in 0.8
2017-04-16 00:46:55 -03:00
Hernan Grecco
db4bad3604
Test for Python 3.6 and added babel to doctest run
2017-04-16 00:46:37 -03:00
bors[bot]
d1728c83b8
Merge #501
...
501: Fixes for issues #95 , #468 , #483 , #462 r=hgrecco
2017-04-15 03:36:48 +00:00
Hernan Grecco
790634dcf6
Allow programatic definitions to contain multiple lines (one definition per line)
...
Close #462
2017-04-15 00:32:34 -03:00
Hernan Grecco
a82a6331af
Allow array exponents (with len > 1) when base is dimensionless
...
Close #483
2017-04-15 00:31:04 -03:00
Hernan Grecco
e64ebc2e08
Wraps now gets the canonical name of the unit when passed as string
...
Close #468
2017-04-14 23:58:49 -03:00
Hernan Grecco
c4b9d10a3b
NumPy exp and log keeps the type
...
Previous behaviour: when it`s passed a dimensionless quantity, it does
not return a dimensionless quantity; it returns a standard numpy array
(or scalar)
New behaviour: returns a dimensionless quantity.
Breaking Change: to regain the old behaviour, get the magnitude of the
resulting value. e.g.
>>> np.log(5 * ureg.dimensionless).magnitude
Close #95
2017-04-14 23:34:31 -03:00
bors[bot]
6c8679008d
Merge #499
...
499: grammar in note about not using eval r=hgrecco
2017-04-10 18:36:19 +00:00
Geordie McBain
cee71ef4c1
grammar in note about not using eval
2017-04-10 16:59:21 +10:00
bors[bot]
1da4a0698a
Merge #497
...
497: Reinstated testing master r=hgrecco
2017-04-02 05:12:14 +00:00
Hernan Grecco
a82460f659
Reinstated testing master
2017-04-02 02:11:22 -03:00
bors[bot]
fd155df072
Merge #496
...
496: Improvements on contribution guidelines, clean up zappr, better System/Group checking and decorator for contexts r=hgrecco
2017-04-02 05:03:43 +00:00
Hernan Grecco
c5bf1ab77e
Implemented a function decorator to ensure that a context is active
...
Close #465
2017-04-02 01:55:07 -03:00
Hernan Grecco
6b838aa9a2
Add warning when a System contains an unknown Group
...
The commit also add a test to make sure that the definition file
included in Pint does not contain System with references to unknown
Groups
Close #472
2017-04-02 01:17:16 -03:00
Hernan Grecco
dc26676a4b
Removed zappr, we are using bors-ng
2017-04-02 01:00:53 -03:00