File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 88from typing import Sequence , Tuple
99from collections import OrderedDict
1010from enum import Enum
11- import importlib_resources
11+ import importlib . resources
1212import pathlib
1313import platform
1414
@@ -92,7 +92,7 @@ class CmdStanPyBackend(IStanBackend):
9292 def __init__ (self ):
9393 import cmdstanpy
9494 # this must be set before super.__init__() for load_model to work on Windows
95- local_cmdstan = importlib_resources .files ("prophet" ) / "stan_model" / f"cmdstan-{ self .CMDSTAN_VERSION } "
95+ local_cmdstan = importlib . resources .files ("prophet" ) / "stan_model" / f"cmdstan-{ self .CMDSTAN_VERSION } "
9696 if local_cmdstan .exists ():
9797 cmdstanpy .set_cmdstan_path (str (local_cmdstan ))
9898 super ().__init__ ()
@@ -103,7 +103,7 @@ def get_type():
103103
104104 def load_model (self ):
105105 import cmdstanpy
106- model_file = importlib_resources .files ("prophet" ) / "stan_model" / "prophet_model.bin"
106+ model_file = importlib . resources .files ("prophet" ) / "stan_model" / "prophet_model.bin"
107107 return cmdstanpy .CmdStanModel (exe_file = str (model_file ))
108108
109109 def fit (self , stan_init , stan_data , ** kwargs ):
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ dependencies = [
1919 " pandas>=1.3.5" ,
2020 " holidays>=0.25,<1" ,
2121 " tqdm>=4.63.2" ,
22- " importlib_resources" ,
2322]
2423authors = [
2524 {name = " Sean J. Taylor" , email = " sjtz@pm.me" },
You can’t perform that action at this time.
0 commit comments