-
Notifications
You must be signed in to change notification settings - Fork 36
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
Standardising atlas file downloading #351
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @viktorpm - this is good progress!
And sorry for letting this sit so long 🙈
I've suggested some minor changes and asked for minor clarifications.
Some high-level comments
- there's quite a bit of commented out code that I think should be removed
- I'm confused by the
###
comments, but if we want to keep them we should add them everywhere.
We should open issues for
- removing the current way of parallelising mesh creation everywhere
- decide what to do with
__version__
and__atlas__
- make mesh creation parallel in a more robust way
What do you think?
@@ -1,52 +1,58 @@ | |||
__version__ = "1" | |||
|
|||
### Import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these comments useful and why do they start with ###
? I may be missing something. If they are useful, should they be added to the admba_3d_dev_mouse
script too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are just there to structure the code into sections.
- Import: loading packages
- Settings: options to turn on and off
- Metadata: atlas related information
If it's confusing or not good practice, we can get rid of them. Ideally, all packaging scripts should follow this structure including admba_3d_dev_mouse
. I probably just forgot to add the headers. That script is a bit of an exception as the generated atlases are treated as separate atlases not as variations of the same atlas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's confusing or not good practice
My take on this is that at least the Metadata
and Import
ones are redundant.
I'm doubtful that we want to keep settings hard-coded on a per-atlas level going forward.
there to structure the code into sections.
Hopefully the structure introduced by #400 will sufficiently structure the scripts.
So I would lean towards removing them.
That script is a bit of an exception as the generated atlases are treated as separate atlases not as variations of the same atlas.
This, on the other hand, is possibly useful contextual explanation that might be a good comment to have in that script (if it's not there yet)!
brainglobe_atlasapi/atlas_generation/atlas_scripts/allen_cord.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/azba_zfish.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/osten_mouse.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/perens_lsfm_mouse.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/perens_lsfm_mouse.py
Outdated
Show resolved
Hide resolved
brainglobe_atlasapi/atlas_generation/atlas_scripts/whs_sd_rat.py
Outdated
Show resolved
Hide resolved
removing commented-out lines Co-authored-by: Alessandro Felder <[email protected]>
removing commented-out line Co-authored-by: Alessandro Felder <[email protected]>
removing unused code Co-authored-by: Alessandro Felder <[email protected]>
…_mouse.py removing unused code Co-authored-by: Alessandro Felder <[email protected]>
removing unnecesseray line Co-authored-by: Alessandro Felder <[email protected]>
removing unnecessary line Co-authored-by: Alessandro Felder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @viktorpm - I've replied to your questions, I think.
Could you resolve the conflicts with main
and ask for my review when you have please? Then we will be almost there!
@@ -1,52 +1,58 @@ | |||
__version__ = "1" | |||
|
|||
### Import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's confusing or not good practice
My take on this is that at least the Metadata
and Import
ones are redundant.
I'm doubtful that we want to keep settings hard-coded on a per-atlas level going forward.
there to structure the code into sections.
Hopefully the structure introduced by #400 will sufficiently structure the scripts.
So I would lean towards removing them.
That script is a bit of an exception as the generated atlases are treated as separate atlases not as variations of the same atlas.
This, on the other hand, is possibly useful contextual explanation that might be a good comment to have in that script (if it's not there yet)!
Crosslinking issues here for documentation purposes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this @viktorpm
I've made some final beautifications and will merge when (if!) the tests pass :)
- removed some unused code that was still there
- fixed the formatter to make the linter happy and run the tests (The problem was the order of docstring, version and imports)
Description
This PR introduces a standardized method for downloading atlas files using pooch.
How has this PR been tested?
Scripts were tested locally
Is this a breaking change?
No
Does this PR require an update to the documentation?
Potentially
Checklist: