Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Create NumPy Facet | Hernan | 2022-05-07 | 1 | -936/+0 |
| | |||||
* | Moved Unit and Quantity to plain facet | Hernan | 2022-05-07 | 1 | -2/+2 |
| | | | | | | Note: the word 'plain' was chosen instead of 'base' as BaseUnit or BaseQuantity as the latter might be interpreted physically and not a part of the class hierarchy as intented. | ||||
* | Run new stable black version | Jules Chéron | 2022-03-30 | 1 | -8/+8 |
| | |||||
* | implement `numpy.nanprod` (#1369) | keewis | 2022-02-02 | 1 | -25/+40 |
| | | | | | | | * add tests for nanprod * fix the exponent for nanprod * use `helpers.assert_quantity_equal` instead of `self.assertQuantityEqual` * add a entry to `CHANGES` | ||||
* | fix typo | Keewis | 2021-03-03 | 1 | -1/+1 |
| | |||||
* | provide a default to also work with earlier numpy versions | Keewis | 2021-03-03 | 1 | -3/+5 |
| | |||||
* | implement lib.stride_tricks.sliding_window_view | Keewis | 2021-03-03 | 1 | -1/+8 |
| | |||||
* | Fix numpy.linalg.solve units output. | Jules Chéron | 2021-02-16 | 1 | -2/+12 |
| | | | | | | | | | | Update get_op_output_unit with new type invdiv. It outputs the product of the following units over the first one in the args list. Update tests with values & np.dot(A, x) == b. Where x = np.linalg.solve(A, b) Closes #1246 | ||||
* | Merge #1224 | bors[bot] | 2021-01-07 | 1 | -4/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 1224: Updated linter r=hgrecco a=hgrecco - [x] Closes #1223 (insert issue number) - [x] Executed ``pre-commit run --all-files`` with no errors - [ ] The change is fully covered by automated unit tests - [ ] Documented in docs/ as appropriate - [ ] Added an entry to the CHANGES file Co-authored-by: Hernan <hernan.grecco@gmail.com> | ||||
| * | Run linter on all files | Hernan | 2021-01-07 | 1 | -4/+2 |
| | | |||||
* | | Add sign to numpy_func.py | Robin Tesse | 2020-10-31 | 1 | -1/+1 |
|/ | |||||
* | use UnitStrippedWarning to warn about stripped units | Keewis | 2020-06-20 | 1 | -1/+2 |
| | |||||
* | Merge #1120 | bors[bot] | 2020-06-18 | 1 | -9/+15 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1120: revise the unit computation for np.prod r=hgrecco a=keewis #1087 left out the case where `axis` and `where` are specified and also used the size of the result to compute the output unit if only `axis` was specified. This changes that to use `a.shape[axis]` instead and also implements the support for both `axis` and `where` by broadcasting `where` against the array, applying `np.sum` along `axis` and using the only one unique value (`0` doesn't count) as an exponent. In case there's more than that, it will try to cast to `dimensionless`. I'm not quite sure if using `np.broadcast_arrays` is the best way to get the exponents, though. Edit: **Todo**: make the error message easier to understand - [x] Closes #867 - [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors - [x] The change is fully covered by automated unit tests - [ ] Documented in docs/ as appropriate - [ ] Added an entry to the CHANGES file Co-authored-by: Keewis <keewis@posteo.de> | ||||
| * | implement the case of axis *and* where | Keewis | 2020-06-18 | 1 | -2/+10 |
| | | |||||
| * | use np.sum directly | Keewis | 2020-06-18 | 1 | -1/+1 |
| | | |||||
| * | treat the axis and where case the same as all others | Keewis | 2020-06-18 | 1 | -2/+1 |
| | | |||||
| * | compute the units before the result | Keewis | 2020-06-18 | 1 | -2/+2 |
| | | |||||
| * | compute the units for pure axis using the shape | Keewis | 2020-06-18 | 1 | -2/+1 |
| | | |||||
* | | remove the obsolete prod entry in op_units_output_ufuncs | Keewis | 2020-06-18 | 1 | -1/+0 |
|/ | |||||
* | make sure the case of calling prod without args works, too | Keewis | 2020-06-17 | 1 | -0/+2 |
| | |||||
* | implement numpy.prod | Keewis | 2020-04-23 | 1 | -0/+22 |
| | |||||
* | Merge branch 'master' into fix-interp | Keewis | 2020-04-01 | 1 | -2/+10 |
|\ | |||||
| * | getattr guard the correct function | Keewis | 2020-03-19 | 1 | -1/+4 |
| | | |||||
| * | don't try to implement a function that does not exist | Keewis | 2020-03-19 | 1 | -1/+4 |
| | | |||||
| * | implement quantile / nanquantile | Keewis | 2020-03-19 | 1 | -0/+2 |
| | | |||||
* | | allow passing mixed args to interp | Keewis | 2020-03-21 | 1 | -0/+3 |
|/ | |||||
* | Treat bare zeros/NaNs as acceptable in all numpy functions | Guido Imperiale | 2020-03-13 | 1 | -54/+23 |
| | | | | | | | | Negative tests C | ||||
* | add, iadd, eq, gt, etc. to treat bare NaN like 0 | Guido Imperiale | 2020-03-12 | 1 | -6/+7 |
| | | | | | | | | | | | Trivial Bugfix on legacy numpy black | ||||
* | don't require rtol / atol to be quantities | Keewis | 2020-03-08 | 1 | -1/+1 |
| | |||||
* | fix for key error in numpy.pad | mark-boer | 2020-02-21 | 1 | -4/+3 |
| | |||||
* | also allow nan as a special value | Keewis | 2020-02-05 | 1 | -1/+1 |
| | |||||
* | remove the unneeded else: | Keewis | 2020-01-20 | 1 | -7/+6 |
| | |||||
* | change the implementation of `pad` to treat non-quantities as dimensionless | Keewis | 2020-01-20 | 1 | -3/+7 |
| | |||||
* | Add implementations and tests for allclose and intersect1d | Jon Thielen | 2020-01-08 | 1 | -0/+2 |
| | |||||
* | Rename sequence-of-quantities helper, with tests for size zero Quantity ↵ | Jon Thielen | 2020-01-07 | 1 | -5/+6 |
| | | | | creation from ndarray by multiplication | ||||
* | Add any, all, cbrt, linalg.solve | Jon Thielen | 2019-12-30 | 1 | -3/+35 |
| | |||||
* | Add explicit support for duck arrays/downcast types along with ↵ | Jon Thielen | 2019-12-29 | 1 | -1/+2 |
| | | | | force_ndarray_like option | ||||
* | Fixes W293 | Hernan | 2019-12-27 | 1 | -11/+11 |
| | |||||
* | Manual edits after pyment | Hernan | 2019-12-27 | 1 | -95/+36 |
| | |||||
* | Run pyment -w --convert -o numpydoc . | Hernan | 2019-12-27 | 1 | -28/+132 |
| | |||||
* | Add np.pad and np.resize implementations | Jon Thielen | 2019-12-26 | 1 | -0/+26 |
| | |||||
* | Merge #940 | bors[bot] | 2019-12-20 | 1 | -9/+53 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 940: Reimplement cumulative product NumPy functions r=hgrecco a=jthielen This PR resolves two issues from #905 that were identified in #939: First, `convert_arg` in `numpy_func.py` presumes `pre_calc_units` is a `Unit` or `None`, but there are instances where it was passed a string by way of `inputs_units` in `implement_func`. Now, any `inputs_units` as a string are converted to a `Unit` before being passed to `convert_to_consistent_units`. Second, the cumulative product functions were using `implement_func` with `input_units` set to something other than `None`, which was incorrect, since these functions have arguments that should not have units (namely `axis`). These functions have been reimplemented accordingly. - [x] Closes #939 - [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors - [x] The change is fully covered by automated unit tests - ~~Documented in docs/ as appropriate~~ - ~~Added an entry to the CHANGES file~~ (fixup to previous change: #905) Co-authored-by: Jon Thielen <github@jont.cc> | ||||
| * | Add documentation for implement_func parameters | Jon Thielen | 2019-12-19 | 1 | -1/+24 |
| | | |||||
| * | Cumululative products should only have unit handling on first argument, not all | Jon Thielen | 2019-12-18 | 1 | -6/+20 |
| | | |||||
| * | convert_to_consistent_units should only take Unit or None | Jon Thielen | 2019-12-18 | 1 | -2/+9 |
| | | |||||
* | | Fix infinite recursion with array raised to scalar quantity power | Jon Thielen | 2019-12-18 | 1 | -1/+4 |
|/ | |||||
* | Remove redundant encoding information (utf8 is the default) | Guido Imperiale | 2019-12-13 | 1 | -1/+0 |
| | |||||
* | isort | Guido Imperiale | 2019-12-13 | 1 | -2/+2 |
| | |||||
* | flake8 fixes | Guido Imperiale | 2019-12-13 | 1 | -28/+31 |
| | |||||
* | black | Guido Imperiale | 2019-12-13 | 1 | -182/+307 |
| |