PIbd-42_SSPR/utils.py

7 lines
189 B
Python
Raw Normal View History

import hashlib
import json
def calculate_hash(experiment_params):
params_str = json.dumps(experiment_params, sort_keys=True)
return hashlib.sha256(params_str.encode()).hexdigest()