Skip to content

Commit

Permalink
Revert " #81 Fixing annoying print"
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL authored May 7, 2024
1 parent fae3055 commit 9705ffa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions intakebuilder/getinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
Expand Down Expand Up @@ -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"):
Expand All @@ -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
'''
Expand Down

0 comments on commit 9705ffa

Please sign in to comment.