Skip to content

Commit

Permalink
try metadata_to_nci in a different position
Browse files Browse the repository at this point in the history
  • Loading branch information
dansand committed May 21, 2024
1 parent 71fdc0f commit 4b4c778
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/scripts/write_repo_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@
#patch missign ids on Person Records
assign_ids(rocratedict['@graph'])


#######
csv_buffer = StringIO()
#get a iso record as pandas df...
nci_iso_record = metadata_to_nci(rocratedict)
nci_iso_record.to_csv(csv_buffer, index=False)
# Reset buffer position to the beginning
csv_buffer.seek(0)
csv_content = csv_buffer.getvalue()
model_repo.create_file("metadata_trail/nci_iso.csv","add nci_iso record csv", csv_content)

try:

expanded = jsonld.expand(rocratedict)
Expand Down Expand Up @@ -80,15 +91,7 @@
model_repo.create_file("metadata_trail/issue_body.md","add issue_body", issue.body)
model_repo.create_file("metadata_trail/issue_dict.json","add issue_dict", issue_dict_str)

#######
csv_buffer = StringIO()
#get a iso record as pandas df...
nci_iso_record = metadata_to_nci(rocratedict)
nci_iso_record.to_csv(csv_buffer, index=False)
# Reset buffer position to the beginning
csv_buffer.seek(0)
csv_content = csv_buffer.getvalue()
model_repo.create_file("metadata_trail/nci_iso.csv","add nci_iso record csv", csv_content)


#####Save license

Expand Down

0 comments on commit 4b4c778

Please sign in to comment.