8000 fixed import · srijan-deepsource/python-sasctl@a289e3a · GitHub
[go: up one dir, main page]

Skip to content

Commit a289e3a

Browse files
committed
fixed import
1 parent 4ec6d78 commit a289e3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/pzmm/importModel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
from pathlib import Path
5-
from ..tasks import get_software_version
5+
from ..core import platform_version
66
from .._services.model_repository import ModelRepository as mr
77
from .writeScoreCode import ScoreCode as sc
88
from .zipModel import ZipModel as zm
@@ -79,7 +79,7 @@ def pzmmImportModel(cls, zPath, modelPrefix, project, inputDF, targetDF, predict
7979
else:
8080
modelFileName = modelPrefix + '.pickle'
8181

82-
isViya35 = (get_software_version() == '3.5')
82+
isViya35 = (platform_version() == '3.5')
8383
if not isViya35:
8484
sc.writeScoreCode(inputDF, targetDF, modelPrefix, predictmethod, modelFileName,
8585
metrics=metrics, pyPath=pyPath, threshPrediction=threshPrediction,

0 commit comments

Comments
 (0)
0