diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py index 65bfd6de2545d07fde2abcb1e5457a0e146fc1d2..01441bdd2e93e65222bc3e40f5b5d68d5b534e8d 100644 --- a/binarycpython/utils/functions.py +++ b/binarycpython/utils/functions.py @@ -1297,10 +1297,10 @@ def merge_dicts(dict_1: dict, dict_2: dict) -> dict: # See whether the types are actually the same if not type(dict_1[key]) is type(dict_2[key]): # Exceptions: - if (type(dict_1[key]) in [int, float]) and ( - type(dict_2[key]) in [int, float] + if (type(dict_1[key]) in [int, float, np.float64]) and ( + type(dict_2[key]) in [int, float, np.float64] ): - new_dict[key] = dict_1[key] + dict_2[key] + new_dict[key] = dict_1[ke] + dict_2[key] else: print(