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

deal with local and remote atlas versions in validate_atlases.py #274

Open
viktorpm opened this issue May 2, 2024 · 9 comments
Open

deal with local and remote atlas versions in validate_atlases.py #274

viktorpm opened this issue May 2, 2024 · 9 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@viktorpm
Copy link
Contributor

viktorpm commented May 2, 2024

Describe the bug

  • I transferred the newly generated Kim atlases (v1.1) to my local atlases folder to run the validation.py function on them.
  • I received this warning:
brainglobe_atlasapi: kim_mouse_25um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
brainglobe update -a kim_mouse_25um
  • The new atlases were overwritten by the older versions from the GIN repository.
  • To work around the problem, I simply renamed the folders from kim_mouse_25um_v1.1 to kim_mouse_25um_v1.0.

Expected behaviour

  • Detect the difference but don't replace the atlases automatically.
@viktorpm viktorpm added the bug Something isn't working label May 2, 2024
@adamltyson
Copy link
Member

adamltyson commented May 2, 2024

Detect the difference but don't replace the atlases automatically.

What was done automatically? Nothing in BrainGlobe should update the atlases without specific user interaction.

@viktorpm
Copy link
Contributor Author

viktorpm commented May 2, 2024

It started to download the atlases without me running the brainglobe update -a kim_mouse_25um (or any other) command.

@adamltyson
Copy link
Member

What started to? What process was running?

@viktorpm
Copy link
Contributor Author

viktorpm commented May 2, 2024

I ran the validation.py function. This is the output:

(bg-atlasapi) vplattner@hpc-gw1:~/_projects/validation/brainglobe-atlasapi$ python brainglobe_atlasapi/atlas_generation/validate_atlases.py
example_mouse_100um 1.2
allen_mouse_10um 1.2
allen_mouse_25um 1.2
allen_mouse_50um 1.2
allen_mouse_100um 1.2
mpin_zfish_1um 1.0
allen_human_500um 0.1
/nfs/nhome/live/vplattner/_projects/validation/brainglobe-atlasapi/brainglobe_atlasapi/core.py:65: UserWarning: This atlas seems to be outdated as no additional_references list is found in metadata!
  warnings.warn(
kim_mouse_10um 1.0
brainglobe_atlasapi: kim_mouse_10um not found locally. Downloading...
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 645.2/645.2 MB • speed: 1.8 MB/s • ETA: 0:00:00
kim_mouse_25um 1.0
brainglobe_atlasapi: kim_mouse_25um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_25um
brainglobe_atlasapi: kim_mouse_25um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_25um
brainglobe_atlasapi: kim_mouse_25um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_25um
brainglobe_atlasapi: updating kim_mouse_25um
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 226.7/226.7 MB • speed: 1.1 MB/s • ETA: 0:00:00
brainglobe_atlasapi: kim_mouse_25um updated to version: 1.0
kim_mouse_50um 1.0
brainglobe_atlasapi: kim_mouse_50um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_50um
brainglobe_atlasapi: kim_mouse_50um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_50um
brainglobe_atlasapi: kim_mouse_50um version 1.1is not the latest available (1.0). To update the atlas run in the terminal:
    brainglobe update -a kim_mouse_50um
brainglobe_atlasapi: updating kim_mouse_50um
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━ 87.8% • 167.2/190.5 MB • speed: 1.1 MB/s • ETA: 0:00:21

@adamltyson
Copy link
Member

Can you link to that file?

@viktorpm
Copy link
Contributor Author

viktorpm commented May 2, 2024

@adamltyson
Copy link
Member

This isn't a bug in the atlasapi, the validation script explicitly updates the atlas. Maybe the validation script should have some logic to deal specifically with atlas versions that are newer than those on GIN?

@viktorpm
Copy link
Contributor Author

viktorpm commented May 2, 2024

Should I convert this into a discussion or close it?

@adamltyson
Copy link
Member

You can keep it open, just maybe change the title so we know what the actual issue is.

As an aside, I've actually just disabled Discussions. We decided a while back to not use that feature (in favour of issues, Zulip & image.sc), and I didn't know we still had it enabled on this repo.

@viktorpm viktorpm added the enhancement New feature or request label May 2, 2024
@viktorpm viktorpm self-assigned this May 2, 2024
@viktorpm viktorpm changed the title new atlas version was replaced by old from GIN deal with local and remote atlas versions in validate_atlases.py May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants