clean up typos
This commit is contained in:
parent
da279b3575
commit
c5c735db60
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue