Skip to content

Commit

Permalink
Fix: Use cell_composition for nrrd density filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed Sep 18, 2023
1 parent a854099 commit 33fac21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/synthesis_workflow/tasks/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,15 @@ def run(self):
mtypes = SynthesisConfig().mtypes
if not mtypes:
mtypes = pd.read_csv(mtype_taxonomy_path, sep="\t")["mtype"].to_list()
composition = yaml.safe_load(self.input()["composition"].open())["neurons"]

for mtype in mtypes:
nrrd_path = Path(CircuitConfig().atlas_path) / f"[cell_density]{mtype.upper()}.nrrd"
nrrd_path = Path("")
for data in composition:
if data["traits"]["mtype"] == mtype:
name = "".join(list(data["density"])[1:-1])
nrrd_path = Path(CircuitConfig().atlas_path) / f"{name}.nrrd"

if not nrrd_path.exists():
annotation = get_layer_annotation(
{
Expand Down

0 comments on commit 33fac21

Please sign in to comment.