File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
- python-version : ["3.11 "]
14
+ python-version : ["3.10 "]
15
15
16
16
steps :
17
17
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ package_dir=
22
22
packages = find:
23
23
python_requires = >=3.10
24
24
install_requires =
25
- darts ==0.27.2
25
+ u8darts[torch]==0.27.2
26
+ numpy<2
26
27
yfinance[nospam]
27
28
pandas_market_calendars
28
29
fmpsdk
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ def get_next_open_market_day():
244
244
today = datetime .now ().date ()
245
245
246
246
# Look for the next valid trading day within a reasonably big window of 30 days
247
- valid_days = nyse .valid_days (start_date = today , end_date = today + timedelta (days = 30 ))
247
+ valid_days = nyse .valid_days (start_date = today , end_date = today + timedelta (days = 30 ), tz = None )
248
248
249
249
next_trading_day = None
250
250
@@ -265,7 +265,7 @@ def main(forecast_start_date: str = None):
265
265
logger .info ("Running forecast on stocks and uploading results to HF Hub..." )
266
266
if forecast_start_date is not None :
267
267
logger .info (f"forecast_start_date: { forecast_start_date } " )
268
- forecast_start_date = pd .Timestamp (forecast_start_date )
268
+ forecast_start_date = pd .Timestamp (forecast_start_date , tz = None )
269
269
else :
270
270
# get next open stock market date
271
271
# Example usage
Original file line number Diff line number Diff line change @@ -15,6 +15,3 @@ def test_get_next_open_market_day():
15
15
assert isinstance (next_day , pd .Timestamp )
16
16
assert next_day .dayofweek < 5 # Not weekend
17
17
18
- def test_forecaster_initialization (forecaster ):
19
- """Test that CanswimForecaster initializes correctly"""
20
- assert isinstance (forecaster , CanswimForecaster )
You can’t perform that action at this time.
0 commit comments