File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1200,9 +1200,6 @@ def _validate_and_return_interactions(
1200
1200
TypeError: If the values or interaction_lookup are not of the expected types.
1201
1201
"""
1202
1202
interactions : dict [tuple [int , ...], float ] = {}
1203
- if values is None :
1204
- msg = "Values must be provided."
1205
- raise TypeError (msg )
1206
1203
if interaction_lookup is None :
1207
1204
interaction_lookup = generate_interaction_lookup (
1208
1205
players = n_players ,
@@ -1215,13 +1212,10 @@ def _validate_and_return_interactions(
1215
1212
1216
1213
if isinstance (values , dict ):
1217
1214
interactions = copy .deepcopy (values )
1218
- elif isinstance ( values , np . ndarray ) :
1215
+ else :
1219
1216
interactions = {
1220
1217
interaction : values [index ].item () for interaction , index in interaction_lookup .items ()
1221
1218
}
1222
- else :
1223
- msg = f"Values must be a numpy array or dictionary. Got { type (values )} ."
1224
- raise TypeError (msg )
1225
1219
1226
1220
if min_order == 0 and () not in interactions :
1227
1221
interactions [()] = float (baseline_value )
You can’t perform that action at this time.
0 commit comments