using non-NCO command line programs

3 views
Skip to first unread message

Jeff

unread,
Jan 25, 2008, 3:38:25 PM1/25/08
to SWAMP Project Users
I think you refer to what I'm getting at in the version 0.1
announcement. I think you called them "command line operators" or
CLOs.

What are the steps needed to enable other command line tools for swamp
input scripts?

Thanks.

Daniel

unread,
Jan 29, 2008, 4:47:22 PM1/29/08
to SWAMP Project Users
To enable other tools, you need to add the parsing logic for them. At
the moment, the code isn't as modularized as I would like, so you'd
have to get closer to the code than you should have to, ideally.

Essentially, you have to write some code so that SWAMP knows how to
determine the inputs and outputs from the command line. This was
about 200 lines of Python to support 15 binaries from NCO. About half
of that consists of defining constants.

I imagine that the simplest operators could be added with a few lines
of code.

How about this: I'll work over the code to see if I can provide more
of a plugin-style sort of interface for adding new tools. You can
provide me with the syntax of a tool, hopefully a simple one, that
you'd like to add, and I can try to write an example around that.

How does that sound?
-Daniel
Reply all
Reply to author
Forward
0 new messages