File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def create_performance_definition(
101
101
table_prefix ,
102
102
project = None ,
103
103
models = None ,
104
- library_name = ' Public' ,
104
+ library_name = " Public" ,
105
105
name = None ,
106
106
description = None ,
107
107
monitor_champion = False ,
@@ -180,7 +180,8 @@ def create_performance_definition(
180
180
max_bins = 10 if max_bins is None else int (max_bins )
181
181
if int (max_bins ) < 2 :
182
182
raise ValueError (
183
- "Parameter 'max_bins' must be at least 2. Received a value of '%s'." % max_bins
183
+ "Parameter 'max_bins' must be at least 2. Received a value of '%s'."
184
+ % max_bins
184
185
)
185
186
186
187
if not project and not models :
@@ -192,7 +193,11 @@ def create_performance_definition(
192
193
# If no models were specified, search the supplied project for all models
193
194
if not models :
194
195
project = mr .get_project (project )
195
- models = mr .list_models (filter = "eq(projectName, '{projectName}')" .format (projectName = project .name ))
196
+ models = mr .list_models (
197
+ filter = "eq(projectName, '{projectName}')" .format (
198
+ projectName = project .name
199
+ )
200
+ )
196
201
197
202
# Separate single models from multiple models
198
203
if not isinstance (models , list ):
You can’t perform that action at this time.
0 commit comments