diff --git a/.github/scripts/crosswalks.py b/.github/scripts/crosswalks.py index 3393d56..783072e 100644 --- a/.github/scripts/crosswalks.py +++ b/.github/scripts/crosswalks.py @@ -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" @@ -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 diff --git a/.github/scripts/write_repo_contents.py b/.github/scripts/write_repo_contents.py index fad8ad3..77c1068 100644 --- a/.github/scripts/write_repo_contents.py +++ b/.github/scripts/write_repo_contents.py @@ -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) @@ -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