Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing princeton_mouse atlas mesh #253

Merged
merged 3 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ def add_parent_id(child_id):
meshes_dir_path.mkdir(exist_ok=True)

tree = get_structures_tree(structs_dict)
rotated_annotations = np.rot90(annotated_volume, axes=(0, 2))

labels = np.unique(rotated_annotations).astype(np.int32)
labels = np.unique(annotated_volume).astype(np.int32)
for key, node in tree.nodes.items():
if key in labels:
is_label = True
Expand All @@ -153,7 +152,7 @@ def add_parent_id(child_id):
node,
tree,
labels,
rotated_annotations,
annotated_volume,
ROOT_ID,
closing_n_iters,
decimate_fraction,
Expand All @@ -177,7 +176,7 @@ def add_parent_id(child_id):
node,
tree,
labels,
rotated_annotations,
annotated_volume,
ROOT_ID,
closing_n_iters,
decimate_fraction,
Expand Down Expand Up @@ -232,6 +231,7 @@ def add_parent_id(child_id):
hemispheres_stack=None,
cleanup_files=False,
compress=True,
scale_meshes=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love a one-line fix 😁

)

return output_filename
Expand Down
Loading