Skip to content

Commit 684392d

Browse files
committed
0-byte astore file
1 parent 0185d6f commit 684392d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Unreleased
55

66
v1.2.5 (2019-10-10)
77
-------------------
8+
**Changes**
9+
- Registering an ASTORE model now creates an empty ASTORE file in Model Manager to be consistent with Model Studio behavior.
10+
811
**Bugfixes**
912
- `microanalytic_score.define_steps` now works with steps having no input parameters.
1013
- Fixed an issue where score code generated from an ASTORE model lacked output variables.

src/sasctl/utils/astore.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ def create_package_from_astore(table):
111111
sess.loadactionset('astore')
112112

113113
result = sess.astore.describe(rstore=table, epcode=True)
114-
astore = sess.astore.download(rstore=table)
115-
if not hasattr(astore, "blob"):
116-
raise ValueError("Failed to download binary data for ASTORE '%s'."
117-
% astore)
118-
astore = astore.blob
119-
120-
astore = bytes(astore) # Convert from SWAT blob type
114+
# astore = sess.astore.download(rstore=table)
115+
# if not hasattr(astore, "blob"):
116+
# raise ValueError("Failed to download binary data for ASTORE '%s'."
117+
# % astore)
118+
# astore = astore.blob
119+
#
120+
# astore = bytes(astore) # Convert from SWAT blob type
121+
122+
# Model Manager expects a 0-byte ASTORE file. Will retrieve actual ASTORE
123+
# from CAS during model publish.
124+
astore = bytes()
121125

122126
# Raise error if describe action fails
123127
if result.status_code != 0:

0 commit comments

Comments
 (0)