From d59a7ae067667cad06b876fbc2b887b9c9276295 Mon Sep 17 00:00:00 2001 From: Nabeel Merali Date: Fri, 12 Apr 2024 08:59:30 -0400 Subject: [PATCH] hotfix --- src/sasctl/pzmm/import_model.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/sasctl/pzmm/import_model.py b/src/sasctl/pzmm/import_model.py index 3ddc0dcb..34e86d51 100644 --- a/src/sasctl/pzmm/import_model.py +++ b/src/sasctl/pzmm/import_model.py @@ -327,6 +327,24 @@ def import_model( ) if cls.notebook_output: print(f"All model files were zipped to {Path(model_files)}.") + project_response = mr.get_project(project) + project = project_exists( + project, + project_response, + target_values, + model_files, + overwrite_project_properties, + ) + + # Check if model with same name already exists in project. + model_exists( + project, model_prefix, overwrite_model, version_name=project_version + ) + + model = mr.import_model_from_zip( + model_prefix, project, zip_io_file, version=project_version + ) + return model, model_files # Import model without generating score code (SAS Viya version invariant) if input_data is None or not predict_method or not score_metrics: