bug fix in frequency parsing
This commit is contained in:
parent
33c56d8f6c
commit
a0499ca157
@ -309,7 +309,7 @@ def _validate_frequency(
|
|||||||
provided_frequency = getattr(AllFrequencies, provided_frequency)
|
provided_frequency = getattr(AllFrequencies, provided_frequency)
|
||||||
start_date = data[0][0]
|
start_date = data[0][0]
|
||||||
end_date = data[-1][0]
|
end_date = data[-1][0]
|
||||||
overall_gap = (end_date - start_date).days
|
overall_gap = (end_date - start_date).days + 1
|
||||||
num_data_points = len(data)
|
num_data_points = len(data)
|
||||||
# days_per_data = num_data_points / overall_gap
|
# days_per_data = num_data_points / overall_gap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user