Skip to content

Commit

Permalink
Add srcdir argument to single representation loading
Browse files Browse the repository at this point in the history
  • Loading branch information
YAY-C committed Jul 24, 2024
1 parent 9bb37c2 commit 5d46fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qstack/spahm/rho/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def load_reps(f_in, from_list=True, srcdir=None, with_labels=False,
else:
is_single, is_labeled = file_format['is_single'], file_format['is_labeled']
# if the given file contains a single representation create a one-element list
Xs = [np.load(f_in, allow_pickle=True)] if is_single else np.load(f_in, allow_pickle=True)
Xs = [np.load(os.path.join(path2list,f_in), allow_pickle=True)] if is_single else np.load(os.path.join(path2list,f_in), allow_pickle=True)
if printlevel > 1: print(f"Loading {len(Xs)} representations (local = {local}, labeled = {is_labeled})")
if progress:
import tqdm
Expand Down

0 comments on commit 5d46fa2

Please sign in to comment.