Skip to content

Commit

Permalink
🐛Fixed save
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Oct 27, 2024
1 parent 26bb202 commit b08d552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/toolkit/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def save(

folder = to_path(folder)
with FileLock(folder / "NpSafeSerializer.lock", timeout=30000):
if cls.try_load(folder, no_load=True) is None:
if cls.try_load(folder, from_raw=to_raw, no_load=True) is None:
folder.mkdir(parents=True, exist_ok=True)
array_path = folder / (cls.raw_array_file if to_raw else cls.array_file)
with timeit(f"save '{folder}'", enabled=verbose):
Expand Down

0 comments on commit b08d552

Please sign in to comment.