Skip to content

Commit

Permalink
removing save_xml function (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Jun 1, 2023
1 parent f5da688 commit 1775d4e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions mnonboard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,6 @@ def save_json(loc, jf):
L.error('Error: %s' % e)
exit(1)

def save_xml(loc, xst):
"""
Output XML string to file.
Args:
loc (str): File location where the XML file is to be written.
xst (str): XML-formatted string to be written to file.
Returns:
(No variable is returned)
"""
L.info('Writing XML to %s' % loc)
try:
with open(loc, 'w+') as f:
json.dump(xst, f, indent=4)
L.info('File written to %s' % loc)
return
except Exception as e:
L.error('Error: %s' % e)
exit(1)

def save_report(rep_str, loc, format='.csv'):
"""
Output a validation report for a set of metadata.
Expand Down

0 comments on commit 1775d4e

Please sign in to comment.