Skip to content

Commit

Permalink
use capital letter of each word for axolotl main structures (#343)
Browse files Browse the repository at this point in the history
* use capital letter of each word for axolotl main structures

* pass version variable to axolotl wrapup
  • Loading branch information
alessandrofelder authored Aug 5, 2024
1 parent b76330a commit d86d2f5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ def create_structure_id_path(main_structure):
element["structure_id_path"] = structure_id_path + [element["id"]]

for main_structure, id_main_structure in structure_id_map.items():

main_structure_acronym = "".join(
[word[0].upper() for word in main_structure.split()]
)
create_main_structure = {
"name": main_structure,
"acronym": main_structure[0:3],
"acronym": main_structure_acronym,
"id": id_main_structure,
"rgb_triplet": [125, 0, 125],
"structure_id_path": [ROOT_ID, id_main_structure],
Expand Down Expand Up @@ -218,7 +220,7 @@ def create_structure_id_path(main_structure):
# Package all the provided data and parameters into an atlas format
output_filename = wrapup_atlas_from_data(
atlas_name=ATLAS_NAME,
atlas_minor_version="1.0",
atlas_minor_version=__version__,
citation=CITATION,
atlas_link=ATLAS_LINK,
species=SPECIES,
Expand Down

0 comments on commit d86d2f5

Please sign in to comment.