Skip to content

Commit

Permalink
Merge pull request #267 from jaredthomas68/profast
Browse files Browse the repository at this point in the history
ProFAST compatible with python 3.9 and 3.10
  • Loading branch information
kbrunik authored Jan 17, 2024
2 parents 43c1af4 + 3a1cfd5 commit a7cd47b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ProFAST/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys

version_info = sys.version_info
if version_info.major == 3:
if version_info.minor == 8:
from .pyc_files.ProFAST_python38 import ProFAST
elif version_info.minor == 9:
from .pyc_files.ProFAST_python39 import ProFAST
elif version_info.minor == 10:
from .pyc_files.ProFAST_python310 import ProFAST
else:
raise(ImportError(f"ProFAST is not currently available for your python version ({version_info[0]}.{version_info[1]}.{version_info[2]}). ProFAST is only compatible with python 3.8, 3.9, and 3.10"))
else:
raise(ImportError(f"ProFAST is not currently available for your python version ({version_info[0]}.{version_info[1]}.{version_info[2]}). ProFAST is only compatible with python 3.8, 3.9, and 3.10"))
Binary file removed ProFAST/__init__.pyc
Binary file not shown.
Binary file added ProFAST/pyc_files/ProFAST_python310.pyc
Binary file not shown.
File renamed without changes.
Binary file added ProFAST/pyc_files/ProFAST_python39.pyc
Binary file not shown.
Empty file added ProFAST/pyc_files/__init__.py
Empty file.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ numpy-financial
optuna
pandas>=2.0.3
pint
plotly
pvmismatch
pyDOE2
pymoo
Expand Down

0 comments on commit a7cd47b

Please sign in to comment.