rename getter method

This commit is contained in:
Justus Kuhlmann 2025-12-04 11:09:03 +01:00
commit 15fd97af8e
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
3 changed files with 26 additions and 7 deletions

View file

@ -8,7 +8,7 @@ from typing import Union
from pyerrors import Obs, Corr, dump_object, load_object
from hashlib import sha256
from .tools import cached
from .tracker import get_file
from .tracker import get
import shutil
@ -29,7 +29,7 @@ def write_measurement(path, ensemble, measurement, uuid, code, parameter_file=No
The uuid of the project.
"""
db = os.path.join(path, 'backlogger.db')
get_file(path, "backlogger.db")
get(path, "backlogger.db")
dl.unlock(db, dataset=path)
conn = sqlite3.connect(db)
c = conn.cursor()
@ -169,7 +169,7 @@ def cache_path(path, file, key):
def preload(path: str, file: str):
get_file(path, file)
get(path, file)
filedict = pj.load_json_dict(os.path.join(path, file))
print("> read file")
return filedict
@ -179,7 +179,7 @@ def drop_record(path: str, meas_path: str):
file_in_archive = meas_path.split("::")[0]
file = os.path.join(path, file_in_archive)
db = os.path.join(path, 'backlogger.db')
get_file(path, 'backlogger.db')
get(path, 'backlogger.db')
sub_key = meas_path.split("::")[1]
dl.unlock(db, dataset=path)
conn = sqlite3.connect(db)