Skip to content

Commit

Permalink
minor bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Dec 7, 2023
1 parent 6981094 commit 9408f60
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion draugr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions draugr/numpy_utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down
6 changes: 5 additions & 1 deletion draugr/numpy_utilities/hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9408f60

Please sign in to comment.