From f2ece573ffcec2dab5ef4d99573dd53ee8b93d2f Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Wed, 4 Oct 2017 16:09:41 +0200 Subject: [PATCH] Removed deprecated command --- python/obitools3/commands/check.pyx | 58 ----------------------------- 1 file changed, 58 deletions(-) delete mode 100644 python/obitools3/commands/check.pyx diff --git a/python/obitools3/commands/check.pyx b/python/obitools3/commands/check.pyx deleted file mode 100644 index b513438..0000000 --- a/python/obitools3/commands/check.pyx +++ /dev/null @@ -1,58 +0,0 @@ -#cython: language_level=3 - -from obitools3.dms.dms import DMS # TODO cimport doesn't work -from obitools3.dms.view.view import View # TODO cimport doesn't work - - -__title__="Print a preview of a DMS, view, column...." - -default_config = { 'inputview' : None, - } - - -# TODO make it work with URIs - -def addOptions(parser): - - # TODO put this common group somewhere else but I don't know where - group=parser.add_argument_group('DMS and view options') - - group.add_argument('--default-dms','-d', - action="store", dest="obi:defaultdms", - metavar='', - default=None, - type=str, - help="Name of the default DMS for reading and writing data.") - - group.add_argument('--view','-v', - action="store", dest="obi:view", - metavar='', - default=None, - type=str, - help="Name of the view.") - - -def run(config): - - # Open DMS - d = DMS.open(config['obi']['defaultdms']) - - # Open input view uif there is one - if 'view' in config['obi'] : - view = View.open(d, config['obi']['view']) - print(repr(view)) - - else : - for v in d : - print(repr(v)) - - d.close() - - - - - - - - - \ No newline at end of file