diff --git a/intakebuilder/getinfo.py b/intakebuilder/getinfo.py index 2d170e3..e43b5dc 100644 --- a/intakebuilder/getinfo.py +++ b/intakebuilder/getinfo.py @@ -7,8 +7,6 @@ import shutil as sh from intakebuilder import builderconfig -warning_count = 0; - ''' getinfo.py provides helper functions to get information (from filename, DRS, file/global attributes) needed to populate the catalog ''' @@ -127,7 +125,6 @@ def getInfoFromGFDLDRS(dirpath,projectdir,dictInfo): #lets go backwards and match given input directory to the template, add things to dictInfo j = -1 cnt = 1 - global warning_count for i in range(nlen-1,0,-1): try: if(builderconfig.output_path_template[i] != "NA"): @@ -139,11 +136,8 @@ def getInfoFromGFDLDRS(dirpath,projectdir,dictInfo): # WE do not want to work with anythi:1 # ng that's not time series #TODO have verbose option to print message - - if (dictInfo["cell_methods"] != "ts" and warning_count < 1): - print("Skipping non-timeseries data") - warning_count = 1 - + if (dictInfo["cell_methods"] != "ts"): + #print("Skipping non-timeseries data") return {} return dictInfo '''