Skip to content

Commit

Permalink
a few fixes for dict_to_report
Browse files Browse the repository at this point in the history
  • Loading branch information
dansand committed Jun 3, 2024
1 parent c98e455 commit f06cd04
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/scripts/crosswalks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ def dict_to_report(issue_dict, verbose = False):


# slug, this gets mapped to name. This is what the model is called on NCI
report += "**Model name:** \n\n"
report += "**Model slug:** \n\n"
report += f"`{issue_dict['slug']}` \n\n" + "(this will be the name of the model repository when created) \n\n"


# title. Note title doesn't appear in CreativeWorks. This gets mapped to alternateName.
report += "**Model long name:** \n\n"
report += "**Model name:** \n\n"
report += f"_{issue_dict['title']}_ \n\n"

# license
Expand All @@ -94,7 +94,9 @@ def dict_to_report(issue_dict, verbose = False):
report += "**Associated Publication title:** \n\n"
report += f"_[{issue_dict['publication']['name']}]({issue_dict['publication']['@id']})_ \n\n"


# description
report += "**Short description:** \n\n"
report += issue_dict["description"] + "\n\n"

# abstract
report += "**Abstract:** \n\n"
Expand Down Expand Up @@ -133,7 +135,7 @@ def dict_to_report(issue_dict, verbose = False):
report += "**Embargo on model contents requested until:** \n\n"
report += f"{issue_dict['embargo'][1]} \n\n"
else:
report += "** No embargo on model contents requested**"
report += "**No embargo on model contents requested** \n\n"


# include model code
Expand Down

0 comments on commit f06cd04

Please sign in to comment.