Skip to content

Commit

Permalink
change verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dansand committed May 28, 2024
1 parent 6719b24 commit e6d5ea5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/crosswalks.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def dict_to_report(issue_dict, verbose = False):
report += " \n"
report += " \n"


# software & algorithm keywords
if "keywords" in issue_dict["software"]:
report += "**Software & algorithm keywords:** \n\n"
Expand Down Expand Up @@ -260,9 +261,9 @@ def dict_to_report(issue_dict, verbose = False):
# report += "**Model setup description:** \n"
# report += f"{issue_dict['model_setup_description']}\n\n"

if verbose is True:
report += " \n ** Dumping dictionary during testing ** \n"
report += str(issue_dict)
#if verbose is True:
# report += " \n ** Dumping dictionary during testing ** \n"
# report += str(issue_dict)

return report

Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/write_repo_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
csv_content = csv_buffer.getvalue()
model_repo.create_file("metadata_trail/nci_iso.csv","add nci_iso record csv", csv_content)

#This is modifying rocratedict in place, which was not the intention
#This is modifying rocratedict in place, which was not the intention
try:

expanded = jsonld.expand(rocratedict)
Expand Down Expand Up @@ -109,7 +109,7 @@
#####Create the README.md

pre_report = '# New [M@TE](https://mate.science/)! model: \n ' + '_we have provided a summary of your model as a starting point for the README, feel free to edit_' + '\n'
report = dict_to_report(data)
report = dict_to_report(data, verbose = True)
# Path to the README.md file
file_path = 'README.md'
# Retrieve the file to get its SHA and content
Expand Down

0 comments on commit e6d5ea5

Please sign in to comment.