Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dummyindex committed Nov 11, 2023
2 parents 78b39ef + 6bf07ac commit 5a7bc89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions livecellx/track/classify_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def load_class2samples_from_json_dir(
sample_paths = glob.glob(str(sample_json_dir / subfolder / "*.json"))
for sample_path in sample_paths:
sample = SingleCellStatic.load_single_cells_json(sample_path)
for sc in sample:
sc.meta["sample_src_dir"] = str(sample_json_dir)
sc.meta["sample_src_class"] = str(subfolder)
class2samples[subfolder].append(sample)
return class2samples

Expand Down

0 comments on commit 5a7bc89

Please sign in to comment.