Skip to content

Commit

Permalink
Removed Required from struct_id and struct_name attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
filimarc committed Jan 8, 2024
1 parent 93cccea commit f18c7fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bsb/topology/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,10 @@ class AllenStructure(NrrdVoxels, classmap_entry="allen"):
referred as Allen Mouse Brain Region Hierarchy (AMBRH)
"""

struct_id: int = config.attr(
type=int, required=types.mut_excl("struct_id", "struct_name", required=True)
)
struct_id: int = config.attr(type=int, key=True)
"""Id of the region to filter within the annotation volume according to the AMBRH.
If struct_id is set, then struct_name should not be set."""
struct_name: str = config.attr(
type=types.str(strip=True, lower=True),
required=types.mut_excl("struct_id", "struct_name", required=True),
)
struct_name: str = config.attr(type=types.str(strip=True, lower=True), key=True)
"""Name or acronym of the region to filter within the annotation volume according to the AMBRH.
If struct_name is set, then struct_id should not be set."""

Expand Down

0 comments on commit f18c7fb

Please sign in to comment.