8000 remove target var from input var list · Sivateja0689/python-sasctl@a6e853e · GitHub
[go: up one dir, main page]

Skip to content

Commit a6e853e

Browse files
committed
remove target var from input var list
1 parent d263876 commit a6e853e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Unreleased
44

55
v1.5.1 (2020-4-1)
66
----------------
7-
- Fixed PyMAS utilities to correctly work functions not bound to pickled objects.
7+
- Fixed PyMAS utilities to correctly work functions not bound to pickled objects.
8+
- Model target variables should no longer appear as an input variable when registering ASTORE models.
89

910
v1.5 (2020-2-23)
1011
----------------

src/sasctl/utils/astore.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def create_files_from_astore(table):
213213
model_properties = _get_model_properties(result)
214214
input_vars = [get_variable_properties(var)
215215
for var in result.InputVariables.itertuples()]
216+
input_vars = [v for v in input_vars if v.get('role', '').upper() == 'INPUT']
216217
output_vars = [get_variable_properties(var)
217218
for var in result.OutputVariables.itertuples()]
218219
astore_filename = '_' + uuid.uuid4().hex[:25].upper()

0 commit comments

Comments
 (0)
0