CoBrALab / qbatch

The Unlicense
27 stars 13 forks source link

Minimum Effort Python API #158

Closed gkiar closed 6 years ago

gkiar commented 6 years ago

New Functionality

from qbatch import qbatchParser as qp
qp(['--help'])
qp(['-n', '-'])

# OR...

from qbatch import qbatchDriver as qd
qd(command_file='file', n=True, logfile='{workdir}/logs')

Known issues

gdevenyi commented 6 years ago

Still remaining is to provide a pythonic interface to submit the task list. Currently still needs a job file.

Easy to do.

gdevenyi commented 6 years ago

Currently _setupVars() is called at the front of both qbatchDriver and qbatchParser, but qbatchParser calls qbatchDriver so in that case its called twice.

I think the solution to this is probably if it were a class init function, if this were done with classes...

Need to think about this a bit more..

gkiar commented 6 years ago

@gdevenyi I actually believe this can just be called at the beginning of qbatchDriver, I just had it in both places for debugging - I don't think that degree of a refactor is necessary, though if you happened to be running from scratch, I do agree a class structure would be better for this whole thing :)

gdevenyi commented 6 years ago

Moved to PR #161