Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sasctl/_services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def create_file(cls, file, folder=None, filename=None, expiration=None):

with open(file, "rb") as f:
file = f.read()
else:

elif not isinstance(file, bytes):
if filename is None:
raise ValueError(
"`filename` must be specified if `file` is not a path."
Expand Down
1 change: 0 additions & 1 deletion src/sasctl/_services/model_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from ..core import current_session, delete, get, sasctl_command, RestObj
from .service import Service


FUNCTIONS = {
"Analytical",
"Classification",
Expand Down
1 change: 1 addition & 0 deletions src/sasctl/pzmm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from .code_file import CodeFile
from .git_integration import GitIntegrate
from .import_model import ImportModel
from .mlflow_model import MLFlowModel
Expand Down
Loading
Loading