File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1024,17 +1024,13 @@ class BadTrendComponent:
10241024 )
10251025
10261026 # --- Test Case 6: Additional error conditions --- #
1027- # Test TypeError for non-numpy array X
1028- with pytest .raises (TypeError , match = "X_exog_array must be a NumPy array or None " ):
1027+ # Test TypeError for non-xarray X (expecting xarray DataArray)
1028+ with pytest .raises (TypeError , match = "X must be an xarray DataArray " ):
10291029 model_with_x .predict (
1030- X = data_with_x [["x1" ]].values . tolist () , # Pass list instead of array
1030+ X = data_with_x [["x1" ]].values , # Pass numpy array instead of xarray
10311031 coords = coords_with_x ,
10321032 )
10331033
1034- # Test coords=None error in predict
1035- with pytest .raises (ValueError , match = "coords must be provided" ):
1036- model_with_x .predict (X = data_with_x [["x1" ]].values , coords = None )
1037-
10381034
10391035@pytest .mark .integration
10401036def test_state_space_time_series ():
You can’t perform that action at this time.
0 commit comments