From 2b3f03ec28cdbb5f1a0b13c3568db98fc888976b Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Thu, 8 Oct 2015 10:46:46 +0200 Subject: [PATCH] Removed deprecated script --- python/obitools3/obicount.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 python/obitools3/obicount.py diff --git a/python/obitools3/obicount.py b/python/obitools3/obicount.py deleted file mode 100644 index ccbcf7e..0000000 --- a/python/obitools3/obicount.py +++ /dev/null @@ -1,31 +0,0 @@ -import sys -import argparse - - -from obitools3.obidms.obidmscolumn.capidmscolumn import OBIDMS_column - - -if __name__ == '__main__': - - parser = argparse.ArgumentParser(description='Computes the sum of a column.') - - parser.add_argument('-d', '--dms', dest='dms_name', type=str, - help='Name of the OBIDMS containing the column') - parser.add_argument('-c', '--column', dest='column_name', type=str, default='count', - help="Name of the OBIDMS column (default: 'count')") - parser.add_argument('-v', '--version', dest='version_number', type=int, default=-1, - help='Version number of the column (default: latest version)') - - args = parser.parse_args() - - c = OBIDMS_column.open(args.dms_name, args.column_name, version_number=args.version_number) - - # check that 1 element / line and summable type? - - total = 0 - - for count in c : - total+=count - - print("Total count = ", total) -