2 parents 7803a67 + 81c68e3 commit f971d9bCopy full SHA for f971d9b
1 file changed
src/herbie/latest.py
@@ -29,6 +29,8 @@ def HerbieLatest(
29
but I also know AWS gets the data pretty quick. So, check AWS
30
first, then check NOMADS (because if you make too many downloads
31
from NOMADS your IP address will get blocked.)
32
+ periods : int
33
+ The number of periods (initialization datetimes) to search through.
34
**kwargs
35
Any other input you want passed to the Herbie class.
36
"""
@@ -40,7 +42,7 @@ def HerbieLatest(
40
42
# Create a list of recent dates to try
41
43
dates = pd.date_range(
44
pd.Timestamp.utcnow().floor(freq).tz_localize(None),
- periods=4,
45
+ periods=periods,
46
freq=f"-{freq}",
47
)
48
0 commit comments