diff --git a/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/cesm_tci.py b/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/cesm_tci.py index 0c568ae53..5b69bcd69 100644 --- a/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/cesm_tci.py +++ b/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/cesm_tci.py @@ -53,7 +53,7 @@ # Add a Pandas date range to subset by season time_units, reference_date = ds.time.attrs['units'].split('since') -if not time_units.strip() in ['D','days','Days','DAYS']: +if time_units.strip() not in ['D','days','Days','DAYS']: print("ERROR: TIME UNITS EXPECTED TO BE DAYS IN tci_from_cesm.py") sys.exit(1) else: diff --git a/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/fluxnet2015_tci.py b/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/fluxnet2015_tci.py index c81a8c3c0..23e1c696c 100644 --- a/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/fluxnet2015_tci.py +++ b/parm/use_cases/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI/fluxnet2015_tci.py @@ -195,7 +195,7 @@ def get_season_start_end(s,refdate): print("NUMBER OF DAYS AFTER FILTERING AT THIS SITE: %04d" % (alldays)) # Double check there's any valid data here - if not len(df) > 0: + if len(df) <= 0: if DEBUG: print("WARNING! NO DATA LEFT AFTER QC FILTERING.") metdf.loc[metdf['sid']==stn,'qc'] = '-9999' @@ -219,7 +219,7 @@ def get_season_start_end(s,refdate): print("TOTAL DAYS FOR %s AT THIS SITE: %04d" % (season,len(df))) # Double check there's any valid data here - if not len(df) > 0: + if len(df) <= 0: if DEBUG: print("WARNING! NO DATA FOR REQUESTED SEASON.") metdf.loc[metdf['sid']==stn,'qc'] = '-9999'