Skip to content

Commit

Permalink
add additional reference to packaging template script
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Oct 28, 2024
1 parent df352c3 commit c15a449
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,23 @@ def retrieve_or_construct_meshes():
return meshes_dict

Check warning on line 115 in brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py#L114-L115

Added lines #L114 - L115 were not covered by tests


def retrieve_additional_references():

Check warning on line 118 in brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py#L118

Added line #L118 was not covered by tests
"""This function only needs editing if the atlas has additional reference
images. It should return a dictionary that maps the name of each
additional reference image to an image stack containing its data.
"""
additional_references = {}
return additional_references

Check warning on line 124 in brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py#L123-L124

Added lines #L123 - L124 were not covered by tests


### If the code above this line has been filled correctly, nothing needs to be
### edited below (unless variables need to be passed between the functions).
if __name__ == "__main__":
bg_root_dir = Path.home() / "brainglobe_workingdir" / ATLAS_NAME
bg_root_dir.mkdir(exist_ok=True)
download_resources()
reference_volume, annotated_volume = retrieve_reference_and_annotation()
additional_references = retrieve_additional_references()
hemispheres_stack = retrieve_hemisphere_map()
structures = retrieve_structure_information()
meshes_dict = retrieve_or_construct_meshes()

Check warning on line 137 in brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/template_script.py#L129-L137

Added lines #L129 - L137 were not covered by tests
Expand All @@ -144,4 +154,5 @@ def retrieve_or_construct_meshes():
cleanup_files=False,
compress=True,
scale_meshes=True,
additional_references=additional_references,
)

0 comments on commit c15a449

Please sign in to comment.