From c5c735db60682a9a8f80e7b17a3960daf76138fb Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Mon, 12 May 2025 20:37:32 +0000 Subject: [PATCH] clean up typos --- corrlib/meas_io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corrlib/meas_io.py b/corrlib/meas_io.py index 5e43b3f..1f1e920 100644 --- a/corrlib/meas_io.py +++ b/corrlib/meas_io.py @@ -5,7 +5,7 @@ import sqlite3 from .input import sfcf,openQCD import json from typing import Union -from pyerrors import Obs, Corr, dump_obj, load_obj +from pyerrors import Obs, Corr, dump_object, load_object from hashlib import sha256 from .tools import cached @@ -140,7 +140,7 @@ def load_records(path: str, meas_paths: list[str], preloaded = {}) -> list[Union for file in needed_data.keys(): for key in list(needed_data[file]): if os.path.exists(cache_path(path, file, key)): - returned_data.append(load_obj(cache_path(path, file, key))) + returned_data.append(load_object(cache_path(path, file, key))) else: if file not in preloaded: preloaded[file] = preload(path, file) @@ -148,7 +148,7 @@ def load_records(path: str, meas_paths: list[str], preloaded = {}) -> list[Union if cached: if not os.path.exists(cache_dir(path, file)): os.makedirs(cache_dir(path, file)) - dump_obj(preloaded[file][key], cache_path(path, file, key)) + dump_object(preloaded[file][key], cache_path(path, file, key)) return returned_data