Skip to content

Commit

Permalink
Change reference period to time period
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-mills committed Jan 4, 2024
1 parent b07a5bc commit f8a5ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peacesecurity.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def generate_dataset_and_showcase(self, dataset_name, configuration):
if not start_date:
logger.error(f"Start date missing for {dataset_name}")
return None, None
dataset.set_reference_period(start_date, end_date, ongoing)
dataset.set_time_period(start_date, end_date, ongoing)

headers = rows[0].keys()
date_headers = [h for h in headers if "date" in h.lower() and type(rows[0][h]) == int]
Expand Down

0 comments on commit f8a5ea0

Please sign in to comment.