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

List all available atlases and their versions in machine-readable format (2) #101

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

nickdelgrosso
Copy link
Member

Hi,

I was looking for a way to put a list of all the brainglobe atlases (as strings, to pass to the BrainGlobeAtlas constructor), and added the function by refactoring out a step in the get_local_atlas_version() function. It works like so:

>> from bg_atlasapi.list_atlases import get_all_atlases_lastversions
>> get_all_atlases_lastversions()
{ "mouse_allen_25um": "1.0",
 "rat_allen_100um": "1.2",
  ...
}

I've put this into slicereg, but it'd be great to put something like this upstream. If there is a better way to get this information, though, or one I missed, I'd be happy to use it!

Best wishes,

Nick

@adamltyson
Copy link
Member

Looks fine to me. @vigji @FedeClaudi?

Thanks @nickdelgrosso!

@FedeClaudi
Copy link
Contributor

yep

@adamltyson adamltyson merged commit ff856ae into brainglobe:master Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants