change time range
This commit is contained in:
parent
341145dc47
commit
08cc653a8e
|
@ -67,7 +67,7 @@ def fetch_files(now:str):
|
||||||
if not os.path.exists(out_path):
|
if not os.path.exists(out_path):
|
||||||
wget.download(url, out=out_path)
|
wget.download(url, out=out_path)
|
||||||
logger.info(f"download file {out_path} finished")
|
logger.info(f"download file {out_path} finished")
|
||||||
end_date = start_date + dt.timedelta(hours=120)
|
end_date = start_date + dt.timedelta(hours=119)
|
||||||
time_range = pd.date_range(start_date+dt.timedelta(hours=8), end_date+dt.timedelta(hours=8), freq='H').astype(str).to_list()
|
time_range = pd.date_range(start_date+dt.timedelta(hours=8), end_date+dt.timedelta(hours=8), freq='H').astype(str).to_list()
|
||||||
return time_range, date
|
return time_range, date
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue