@@ -831,10 +831,7 @@ class DSSSubpopulationGlobal(object):
831831 """
832832
833833 def __init__ (self , data , prediction_type ):
834- if data is None :
835- self ._internal_dict = dict ()
836- else :
837- self ._internal_dict = data
834+ self ._internal_dict = data
838835 self .prediction_type = prediction_type
839836
840837 def get_raw (self ):
@@ -883,11 +880,7 @@ class DSSSubpopulationModality(object):
883880 """
884881
885882 def __init__ (self , feature_name , computed_as_type , data , prediction_type ):
886- if data is None :
887- self ._internal_dict = dict ()
888- else :
889- self ._internal_dict = data
890-
883+ self ._internal_dict = data
891884 self .prediction_type = prediction_type
892885 if computed_as_type == "CATEGORY" :
893886 self .definition = DSSSubpopulationCategoryModalityDefinition (feature_name , data )
@@ -1101,10 +1094,7 @@ class DSSSubpopulationAnalyses(object):
11011094 """
11021095
11031096 def __init__ (self , data , prediction_type ):
1104- if data is None :
1105- self ._internal_dict = dict ()
1106- else :
1107- self ._internal_dict = data
1097+ self ._internal_dict = data
11081098 self .prediction_type = prediction_type
11091099 self .analyses = []
11101100 for analysis in data .get ("subpopulationAnalyses" , []):
@@ -1152,10 +1142,7 @@ class DSSPartialDependence(object):
11521142 """
11531143
11541144 def __init__ (self , data ):
1155- if data is None :
1156- self ._internal_dict = dict ()
1157- else :
1158- self ._internal_dict = data
1145+ self ._internal_dict = data
11591146
11601147 def get_raw (self ):
11611148 """
@@ -1187,10 +1174,7 @@ class DSSPartialDependencies(object):
11871174 """
11881175
11891176 def __init__ (self , data ):
1190- if data is None :
1191- self ._internal_dict = dict ()
1192- else :
1193- self ._internal_dict = data
1177+ self ._internal_dict = data
11941178 self .partial_dependencies = []
11951179 for pd in data .get ("partialDependencies" , []):
11961180 self .partial_dependencies .append (DSSPartialDependence (pd ))
0 commit comments