Skip to content

Commit

Permalink
chore(rpextractsink)!: genSink return a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Oct 9, 2023
1 parent a879fc5 commit 08feb51
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rptools/rpextractsink/rpextractsink.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def get_inchi_from_url(
def genSink(
cache,
input_sbml,
output_sink,
remove_dead_end=False,
compartment_id=default_comp,
logger: Logger = getLogger(__name__)
Expand Down Expand Up @@ -220,12 +219,7 @@ def genSink(
logger.warning(f'MetaNetX ID {mnx_id} already in sink')
sink[mnx_id] = inchi

logger.debug(f'Writing sink to {output_sink}...')
# Write the sink file
with open(output_sink, 'w', encoding='utf-8') as outS:
write(outS, ['Name', 'InChI'])
for _mnx_id, _inchi in sink.items():
write(outS, [_mnx_id, _inchi])
return sink


def write(outFile, elts, delimiter=',', quotechar='"'):
Expand Down

0 comments on commit 08feb51

Please sign in to comment.