Skip to content

Commit

Permalink
YES: Remove hacks (#57)
Browse files Browse the repository at this point in the history
* Output type set correctly in q2galaxy

* Detect errors set correctly in q2galaxy

* Profile updated in q2galaxy, version already being set accurately
  • Loading branch information
Oddant1 authored Feb 27, 2024
1 parent db44258 commit 2606884
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions repo-utils/swap-in-docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ def main(tool_fp, docker_image):

root.replace(root.find('requirements'), new_reqs)

# TODO: port these to q2galaxy
# HACK: set correct profile and hack version
root.set('version', root.get('version') + '.2')
root.set('profile', '22.05')

# HACK: fix visualizer output ftype
for output in root.iterfind('.//output'):
if output.get('name') == 'visualization':
output.set('ftype', 'qzv')

# HACK: change command dectect_errors
command = root.find('command')
command.set('detect_errors', 'exit_code')

xml.indent(tool, ' ' * 4)
xmlbytes = xml.tostring(tool, pretty_print=True, encoding='utf-8',
xml_declaration=True)
Expand Down

0 comments on commit 2606884

Please sign in to comment.