Skip to content

Commit

Permalink
Fix start and end datetime references. (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurva authored Aug 4, 2023
1 parent edbe6f0 commit d62a995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/us_usda/quickstats/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@


def process_survey_data(year, svs, out_dir):
start = datetime.datetime.now()
start = datetime.now()
print('Start', year, '=', start)

os.makedirs(get_parts_dir(out_dir, year), exist_ok=True)
Expand All @@ -86,7 +86,7 @@ def process_survey_data(year, svs, out_dir):

write_aggregate_csv(year, out_dir)

end = datetime.datetime.now()
end = datetime.now()
print('End', year, '=', end)
print('Duration', year, '=', str(end - start))

Expand Down Expand Up @@ -252,14 +252,14 @@ def get_all_counties():


def get_multiple_years():
start = datetime.datetime.now()
start = datetime.now()
print('Start', start)

svs = load_svs()
for year in range(2000, datetime.now().year + 1):
process_survey_data(year, svs, "output")

end = datetime.datetime.now()
end = datetime.now()
print('End', end)
print('Duration', str(end - start))

Expand Down

0 comments on commit d62a995

Please sign in to comment.