Skip to content

Commit 6177c68

Browse files
authored
Merge pull request #412 from djarecka/fix/hashval
reverting some changes to hash_value
2 parents 5a085c4 + 6bd33d0 commit 6177c68

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

pydra/engine/helpers.py

+1-12
Original file line numberDiff line numberDiff line change
@@ -696,19 +696,8 @@ def hash_value(value, tp=None, metadata=None, precalculated=None):
696696
return hash_dir(value, precalculated=precalculated)
697697
elif type(value).__module__ == "numpy": # numpy objects
698698
return sha256(value.tostring()).hexdigest()
699-
elif (
700-
isinstance(
701-
value, (int, float, complex, bool, str, bytes, LazyField, os.PathLike)
702-
)
703-
or value is None
704-
):
705-
return value
706699
else:
707-
warnings.warn(
708-
f"pydra doesn't fully support hashing for {type(value)}, "
709-
f"cp.dumps is used in hash functions, so it could depend on the system"
710-
)
711-
return sha256(cp.dumps(value)).hexdigest()
700+
return value
712701

713702

714703
def output_from_inputfields(output_spec, input_spec):

0 commit comments

Comments
 (0)