-
Notifications
You must be signed in to change notification settings - Fork 41
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
Validate atlas name #524
Comments
The following atlas names are already covered :
resulting in
When I fixed the bug in the However after talking to @alessandrofelder and checking the atlas names on last_versions.conf (GIN) -- they all end with the resolution -- we decided it could make more sense to always expect atlas names to end with the resolution and validate this (if this is not already happening). Just wanted to check what you're opinion @adamltyson and whether you can think of any other (edge) cases that should be added to the test. |
Agree. The whole point of the Atlas API is standardisation, so we should validate/enforce it where we can. |
Atlas naming convention allowed name structures
allowed characters
Elements in atlas name
Deduced from looking at the atlas names here https://gin.g-node.org/BrainGlobe/atlases/src/master/last_versions.conf Note1: @alessandrofelder told me that atlasses with a "mm" resolution will probably be added in the future. Note 2: |
Just found out there already is a
|
See #523 for context
To do
validate_atlas_name
inbrainglobe_atlasapi\atlas_generation\validate_atlases.py
.repr
method which currently allows more flexible atlas names than what should be allowed.tests\atlasgen\test_validation.py
The text was updated successfully, but these errors were encountered: