@@ -70,16 +70,16 @@ def __init__(self, **kwargs):
70
70
self .status_prefix = self .ctx ["status_prefix" ]
71
71
self .app = self .ctx ["app" ]
72
72
self .environment = self .ctx ["environment" ]
73
- self .python_packages = self .ctx ["python_packages" ]
74
- self .raw_columns = self .ctx ["raw_columns" ]
75
- self .transformed_columns = self .ctx ["transformed_columns" ]
76
- self .transformers = self .ctx ["transformers" ]
77
- self .aggregators = self .ctx ["aggregators" ]
78
- self .aggregates = self .ctx ["aggregates" ]
79
- self .constants = self .ctx ["constants" ]
80
- self .models = self .ctx ["models" ]
81
- self .estimators = self .ctx ["estimators" ]
82
- self .apis = self .ctx ["apis" ]
73
+ self .python_packages = self .ctx ["python_packages" ] or {}
74
+ self .raw_columns = self .ctx ["raw_columns" ] or {}
75
+ self .transformed_columns = self .ctx ["transformed_columns" ] or {}
76
+ self .transformers = self .ctx ["transformers" ] or {}
77
+ self .aggregators = self .ctx ["aggregators" ] or {}
78
+ self .aggregates = self .ctx ["aggregates" ] or {}
79
+ self .constants = self .ctx ["constants" ] or {}
80
+ self .models = self .ctx ["models" ] or {}
81
+ self .estimators = self .ctx ["estimators" ] or {}
82
+ self .apis = self .ctx ["apis" ] or {}
83
83
self .training_datasets = {k : v ["dataset" ] for k , v in self .models .items ()}
84
84
self .api_version = self .cortex_config ["api_version" ]
85
85
@@ -99,12 +99,11 @@ def __init__(self, **kwargs):
99
99
)
100
100
)
101
101
102
- if self .environment is not None :
103
- self .columns = util .merge_dicts_overwrite (self .raw_columns , self .transformed_columns )
102
+ self .columns = util .merge_dicts_overwrite (self .raw_columns , self .transformed_columns )
104
103
105
- self .raw_column_names = list (self .raw_columns .keys ())
106
- self .transformed_column_names = list (self .transformed_columns .keys ())
107
- self .column_names = list (self .columns .keys ())
104
+ self .raw_column_names = list (self .raw_columns .keys ())
105
+ self .transformed_column_names = list (self .transformed_columns .keys ())
106
+ self .column_names = list (self .columns .keys ())
108
107
109
108
# Internal caches
110
109
self ._transformer_impls = {}
0 commit comments