From 2b4301eded3b799391d73d7a4f091fd3fe7fe07b Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Mon, 6 Jan 2025 07:44:41 -0800 Subject: [PATCH] remove trailing white spaces --- utilities/parseSafeGraph.py | 2 +- utilities/plotMovie/plotCases.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/parseSafeGraph.py b/utilities/parseSafeGraph.py index 80fb038..9fd3ecf 100644 --- a/utilities/parseSafeGraph.py +++ b/utilities/parseSafeGraph.py @@ -18,7 +18,7 @@ def genWorkerflow(dirPath: str, state: str): sgDir= dirPath + "/" - gdf = geopd.GeoDataFrame(columns=["geoid_o", "geoid_d", "lng_o", "lat_o", "lng_d", "lat_d", "date", "visitor_flows", "pop_flows", "stateFIPS_o", "stateFIPS_d", "countyFIPS_o", "countyFIPS_d"]) + gdf = geopd.GeoDataFrame(columns=["geoid_o", "geoid_d", "lng_o", "lat_o", "lng_d", "lat_d", "date", "visitor_flows", "pop_flows", "stateFIPS_o", "stateFIPS_d", "countyFIPS_o", "countyFIPS_d"]) stateFIPS= {'AL': 1, 'AK': 2, 'AZ': 4, 'AR': 5, 'CA': 6, 'CO': 8, 'CT':9 , 'DE': 10, 'DC': 11, 'FL': 12, 'GA': 13, 'HI': 15, 'ID': 16, 'IL': 17, 'IN': 18, 'IA': 19, 'KS': 20, 'KY': 21, 'LA': 22, 'ME': 23, 'MD': 24, 'MA': 25, 'MI': 26, 'MN': 27, 'MS': 28, 'MO': 29, 'MT': 30, 'NE': 31, 'NV': 32, 'NH': 33, 'NJ': 34, 'NM': 35, 'NY': 36, 'NC': 37, 'ND': 38, 'OH': 39, 'OK': 40, 'OR': 41, 'PA': 42, 'RI': 44, 'SC': 45, 'SD': 46, 'TN': 47, 'TX': 48, 'UT': 49, 'VT': 50, 'VA': 51, 'WA': 53, 'WV': 54, 'WI': 55, 'WY': 56} wfFiles= [os.path.join(sgDir, f) for f in os.listdir(sgDir) if f.endswith(".csv")] for wfFile in wfFiles: diff --git a/utilities/plotMovie/plotCases.py b/utilities/plotMovie/plotCases.py index be7948f..bc03e7d 100644 --- a/utilities/plotMovie/plotCases.py +++ b/utilities/plotMovie/plotCases.py @@ -39,7 +39,7 @@ def write_rawCases(fn: str): output_file = open(fn+".csv", 'w') stdout =sys.stdout - sys.stdout = output_file + sys.stdout = output_file for k, v in d_inf.items(): print("{:011d}".format(k), ",", v) sys.stdout= stdout