File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3434# Print output message if not run correctly
3535###########################################
3636if len (sys .argv ) < 2 :
37- print ("\n Usage: CC.py <input_file> <(optional)num_partitions> <(optional) limit_year>\n " )
37+ print ("\n Usage: CC.py <input_file> <(optional)num_partitions> <(optional) prefix> <(optional) limit_year>\n " )
3838 sys .exit (0 )
3939###########################################
4040
4848except :
4949 num_partitions = 1
5050try :
51- limit_year = int (sys .argv [3 ])
51+ prefix = sys .argv [3 ] + "_"
52+ except :
53+ prefix = "CC_"
54+ try :
55+ limit_year = int (sys .argv [4 ])
5256except :
5357 limit_year = None
5458
247251
248252########################################################################################################################################################
249253## WRITE THE OUTPUT OF CC
250- prefix = "CC_"
251254if limit_year :
252255 prefix = str (limit_year ) + '-year_' + prefix
253256# Write output to file
You can’t perform that action at this time.
0 commit comments