Skip to content

Commit

Permalink
removed pandas step
Browse files Browse the repository at this point in the history
  • Loading branch information
vigji committed May 28, 2020
1 parent d3c3149 commit e7282f8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions brainatlas_api/atlas_gen/atlas_scripts/test_atlas.py
Expand Up @@ -7,8 +7,6 @@
import json
import shutil

import pandas as pd # TODO not necessary

from brainatlas_api.atlas_gen import (
save_anatomy,
save_annotation,
Expand Down Expand Up @@ -62,10 +60,13 @@
# Find id of set of regions with mesh:
select_set = "Structures whose surfaces are represented by a precomputed mesh"

all_sets = pd.DataFrame(oapi.get_structure_sets())
mesh_set_id = all_sets[all_sets.description == select_set].id.values[0]
mesh_set_ids = [
s["id"]
for s in oapi.get_structure_sets()
if s["description"] == select_set
]

structs_with_mesh = struct_tree.get_structures_by_set_id([mesh_set_id])[:3]
structs_with_mesh = struct_tree.get_structures_by_set_id(mesh_set_ids)[:3]

# Directory for mesh saving:
meshes_dir = uncompr_atlas_path / descriptors.MESHES_DIRNAME
Expand Down

0 comments on commit e7282f8

Please sign in to comment.