Skip to content

Commit

Permalink
Update more loading typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair-droop committed Aug 30, 2019
1 parent 825b890 commit fb32659
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions qsubsec/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from qsubsec.sections import SectionList, Limits, CommandType
from qsubsec.templates import Template
from qsubsec.sectionSubmitter import outputSubmitterProc, outputSubmitterShell
import qsubsec.sectionFormatter
import qsubsec.sectionFormatter
from collections import OrderedDict
import os
import os.path
Expand Down Expand Up @@ -66,7 +66,7 @@ def loadRCFile(filename=None):
except: ns = argparse.Namespace()
return ns

def qsubsec():
def qsmain():
# Define the defaults:
defaults = {'verbosity_level':'warning', 'submission_format':'qsub', 'submission_timeout':None, 'url_encoding':'UTF-8'}
# Create the command line interface:
Expand Down Expand Up @@ -156,7 +156,7 @@ def printJSON(x): print(json.dumps(x, indent='\t'))
tokens.extend(ts_new)
except qstokens.MissingTokenError as err: error(log, 'missing tokens "{}" in file "{}"'.format('", "'.join(err.tokens), f_path))
except BaseException as err: error(log, str(err))

# Execute the template to yield the sections:
log.info('executing template')
try: template.execute(tokens)
Expand Down Expand Up @@ -243,10 +243,10 @@ def printJSON(x): print(json.dumps(x, indent='\t'))
exit(0)

# Process the commands through the specified output formatter:
if args.submission_format == 'qsub': formatter = sectionFormatter.QSUBFormatter
elif args.submission_format == 'bsub': formatter = sectionFormatter.LSFFormatter
elif args.submission_format == 'bash': formatter = sectionFormatter.BashFormatter
elif args.submission_format == 'pbash': formatter = sectionFormatter.BashFormatter
if args.submission_format == 'qsub': formatter = qsubsec.sectionFormatter.QSUBFormatter
elif args.submission_format == 'bsub': formatter = qsubsec.sectionFormatter.LSFFormatter
elif args.submission_format == 'bash': formatter = qsubsec.sectionFormatter.BashFormatter
elif args.submission_format == 'pbash': formatter = qsubsec.sectionFormatter.BashFormatter
else: error(log, 'no formatter for submission format {}'.format(args.submission_format))
log.info('submission format is {}'.format(args.submission_format))
if args.submit is False:
Expand Down
2 changes: 1 addition & 1 deletion qsubsec/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['__version__']
__version__ = '3.0a27'
__version__ = '3.0a28'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
python_requires = '>=3',
entry_points = {
'console_scripts': [
'qsubsec=qsubsec.scripts:qsubsec',
'qsubsec=qsubsec.scripts:qsmain',
'parse-tff=qsubsec.scripts:parseTFF',
'update-template=qsubsec.scripts:updateTemplate'
]
Expand Down

0 comments on commit fb32659

Please sign in to comment.