From 9408f60e359d28af05fbd3cf298e328ae08a8c35 Mon Sep 17 00:00:00 2001 From: Christian Heider Nielsen Date: Thu, 7 Dec 2023 15:01:28 +0100 Subject: [PATCH] minor bump --- draugr/__init__.py | 2 +- draugr/numpy_utilities/__init__.py | 6 ++++-- draugr/numpy_utilities/hashing.py | 6 +++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/draugr/__init__.py b/draugr/__init__.py index a41d25e3..4b2dd354 100644 --- a/draugr/__init__.py +++ b/draugr/__init__.py @@ -5,7 +5,7 @@ __project__ = "Draugr" __author__ = "Christian Heider Lindbjerg" -__version__ = "1.1.6" +__version__ = "1.2.0" __doc__ = r""" Created on 27/04/2019 diff --git a/draugr/numpy_utilities/__init__.py b/draugr/numpy_utilities/__init__.py index 1df4ba83..2153674d 100644 --- a/draugr/numpy_utilities/__init__.py +++ b/draugr/numpy_utilities/__init__.py @@ -16,10 +16,12 @@ try: from .channel_transform import * from .manipulation import * - from .datasets import * + + # from .datasets import * from .sampling import * from .powers import * - from .signal_utilities import * + + # from .signal_utilities import * from .raster_grid_2d_masking import * from .mixing import * from .hashing import * diff --git a/draugr/numpy_utilities/hashing.py b/draugr/numpy_utilities/hashing.py index 0cd4165b..ef0f23d8 100644 --- a/draugr/numpy_utilities/hashing.py +++ b/draugr/numpy_utilities/hashing.py @@ -30,10 +30,14 @@ def positive_int_hash( ) -> int: """ - :param hasher: :param s: + :type s: str :param limit_size: + :type limit_size: Optional[int] + :param hasher: Which hashing function to use + :type hasher: callable :return: + :rtype: int """ pos_int = hasher(s.encode("utf-8")) & 0xFFFFFFFF if limit_size: # Wrap around