diff --git a/unitSI/_version.py b/unitSI/_version.py deleted file mode 100644 index be64389..0000000 --- a/unitSI/_version.py +++ /dev/null @@ -1,16 +0,0 @@ -# file generated by setuptools_scm -# don't change, don't track in version control -TYPE_CHECKING = False -if TYPE_CHECKING: - from typing import Tuple, Union - VERSION_TUPLE = Tuple[Union[int, str], ...] -else: - VERSION_TUPLE = object - -version: str -__version__: str -__version_tuple__: VERSION_TUPLE -version_tuple: VERSION_TUPLE - -__version__ = version = '1.0.post6' -__version_tuple__ = version_tuple = (1, 0) diff --git a/unitSI/fundamentalunits.py b/unitSI/fundamentalunits.py index 82270a1..ac4b692 100644 --- a/unitSI/fundamentalunits.py +++ b/unitSI/fundamentalunits.py @@ -1652,13 +1652,7 @@ def __format__(self, format_spec): return super().__format__(format_spec) #### Mathematic methods #### - cumsum = wrap_function_keep_dimensions(np.ndarray.cumsum) - diagonal = wrap_function_keep_dimensions(np.ndarray.diagonal) - max = wrap_function_keep_dimensions(np.ndarray.max) - mean = wrap_function_keep_dimensions(np.ndarray.mean) - min = wrap_function_keep_dimensions(np.ndarray.min) - ptp = wrap_function_keep_dimensions(np.ndarray.ptp) # To work around an issue in matplotlib 1.3.1 (see # https://github.com/matplotlib/matplotlib/pull/2591), we make `ravel` @@ -1675,8 +1669,6 @@ def __format__(self, format_spec): if use_matplotlib_units_fix: def ravel(self, *args, **kwds): - # Note that we don't use Brian's logging system here as we don't want - # the unit system to depend on other parts of Brian warn( "As a workaround for a bug in matplotlib 1.3.1, calling " '"ravel()" on a quantity will return unit-less values. If you ' @@ -1691,20 +1683,7 @@ def ravel(self, *args, **kwds): ravel._return_unit = 1 ravel.__name__ = np.ndarray.ravel.__name__ ravel.__doc__ = np.ndarray.ravel.__doc__ - else: - ravel = wrap_function_keep_dimensions(np.ndarray.ravel) - - round = wrap_function_keep_dimensions(np.ndarray.round) - std = wrap_function_keep_dimensions(np.ndarray.std) - sum = wrap_function_keep_dimensions(np.ndarray.sum) - trace = wrap_function_keep_dimensions(np.ndarray.trace) - var = wrap_function_change_dimensions(np.ndarray.var, lambda ar, d: d**2) - all = wrap_function_remove_dimensions(np.ndarray.all) - any = wrap_function_remove_dimensions(np.ndarray.any) - nonzero = wrap_function_remove_dimensions(np.ndarray.nonzero) - argmax = wrap_function_remove_dimensions(np.ndarray.argmax) - argmin = wrap_function_remove_dimensions(np.ndarray.argmin) - argsort = wrap_function_remove_dimensions(np.ndarray.argsort) + # argsort = wrap_function_remove_dimensions(np.ndarray.argsort) def fill(self, values): # pylint: disable=C0111 fail_for_dimension_mismatch(self, values, "fill")