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

A first pass at regenerating atlases that fail our validation scripts #201

Open
4 tasks
alessandrofelder opened this issue Feb 12, 2024 · 10 comments
Open
4 tasks
Assignees
Labels
atlasgen Issue was transferred from the retired bg-atlasgen. Concerns the atlas_generation submodule. enhancement New feature or request

Comments

@alessandrofelder
Copy link
Member

Is your feature request related to a problem? Please describe.
Thanks to brainglobe/bg-atlasgen#116, we now have a mature-enough first version of a validation framework for BrainGlobe atlases, and have run it on all existing atlases. This has helped us identify a number of validation failures. Many of these consist of a mismatch between the annotation and the root mesh extents - a possible source of this may already be fixed in the code by brainglobe/bg-atlasgen#62 but the atlases have not been regenerated yet.

Describe the solution you'd like

Describe alternatives you've considered
/

Additional context
/

@alessandrofelder alessandrofelder added the enhancement New feature or request label Feb 12, 2024
@adamltyson
Copy link
Member

Would this be a good time to pick up the original idea for packaging atlases following updates, namely a script that can run unattended on HPC/workstation to:

  • Repackage all atlases
  • Validate
  • Upload to PyPI

The current process is a bit of a pain

@alessandrofelder
Copy link
Member Author

This might be a good idea!
Minor thing that is unclear in my head: would we bump versions of atlases when the code has changed, but the resulting atlas has not?

@alessandrofelder
Copy link
Member Author

An alternative might be to embed the commit hash that an atlas was created with in its metadata 🤔

@adamltyson
Copy link
Member

Minor thing that is unclear in my head: would we bump versions of atlases when the code has changed, but the resulting atlas has not?

Originally we had an idea that the atlas versions would have the same major version as the atlas API. So maybe only bump the atlases when the atlas API has a major bump?

@adamltyson
Copy link
Member

I.e. atlas version 2.x.y would be x.y. version compatible with version 2 of the API.

@alessandrofelder
Copy link
Member Author

alessandrofelder commented Feb 16, 2024

Would this be a good time to pick up the original idea for packaging atlases following updates, namely a script that can run unattended on HPC/workstation to:

  • Repackage all atlases
  • Validate
  • Upload to PyPI

In the last point, do you mean releasing the code to PyPI and/or uploading the atlases to GIN, @adamltyson ?

@adamltyson
Copy link
Member

Sorry, yes uploading to GIN (not PyPI).

@alessandrofelder
Copy link
Member Author

namely a script that can run unattended on HPC/workstation to

Yes, I think this is a good way to address this issue. This script would either...

  • need to check for differences after regeneration to be able to decide whether to push a new version to GIN, or...
  • always bump the (minor) version of all atlases if they were generated with a new tagged version of brainglobe-atlasapi

What do you think @viktorpm @adamltyson ?

2.x.y would be x.y. version compatible with version 2 of the API.

I am happy with this.

@adamltyson
Copy link
Member

need to check for differences after regeneration to be able to decide whether to push a new version to GIN, or...

I think this one. If we want to keep old versions on GIN, we'd be uploading huge amounts of data unnecessarily.

@viktorpm
Copy link
Contributor

viktorpm commented Feb 22, 2024

I.e. atlas version 2.x.y would be x.y. version compatible with version 2 of the API.

Yes, I agree. This sounds reasonable

@willGraham01 willGraham01 added the atlasgen Issue was transferred from the retired bg-atlasgen. Concerns the atlas_generation submodule. label Feb 23, 2024
@willGraham01 willGraham01 transferred this issue from brainglobe/bg-atlasgen Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
atlasgen Issue was transferred from the retired bg-atlasgen. Concerns the atlas_generation submodule. enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

4 participants