brainglobe / brainglobe-atlasapi

A lightweight python module to interact with atlases for systems neuroscience
https://brainglobe.info/documentation/brainglobe-atlasapi/index.html
BSD 3-Clause "New" or "Revised" License
117 stars 24 forks source link

Return `brainglobe list` in alphabetical order #298

Closed adamltyson closed 1 month ago

adamltyson commented 1 month ago

Description

What is this PR

Why is this PR needed? When running brainglobe list, the resulting table isn't in alphabetical order. and it looks a bit scruffy.

What does this PR do? This PR orders the table. The downloaded and not downloaded atlases are sorted independently, so the downloaded atlases are always at the top. It also refactors the file a bit and fixes a typo.

References

Closes #292

How has this PR been tested?

Tested manually, and existing tests pass.