2020)
2121
2222# Needs to be computed manually to prevent circular dependency
23- ordinary_strategies = [s for s in all_strategies if Classifiers .obey_axelrod (s )]
23+ ordinary_strategies = [s for s in all_strategies if Classifiers .obey_axelrod (s () )]
2424
2525C , D = Action .C , Action .D
2626
@@ -332,7 +332,7 @@ class MetaMajorityMemoryOne(MetaMajority):
332332 name = "Meta Majority Memory One"
333333
334334 def __init__ (self ):
335- team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s ) <= 1 ]
335+ team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s () ) <= 1 ]
336336 super ().__init__ (team = team )
337337 self .classifier ["long_run_time" ] = False
338338
@@ -351,7 +351,7 @@ def __init__(self):
351351 team = [
352352 s
353353 for s in ordinary_strategies
354- if Classifiers ["memory_depth" ](s ) < float ("inf" )
354+ if Classifiers ["memory_depth" ](s () ) < float ("inf" )
355355 ]
356356 super ().__init__ (team = team )
357357
@@ -370,7 +370,7 @@ def __init__(self):
370370 team = [
371371 s
372372 for s in ordinary_strategies
373- if Classifiers ["memory_depth" ](s ) == float ("inf" )
373+ if Classifiers ["memory_depth" ](s () ) == float ("inf" )
374374 ]
375375 super ().__init__ (team = team )
376376
@@ -386,7 +386,7 @@ class MetaWinnerMemoryOne(MetaWinner):
386386 name = "Meta Winner Memory One"
387387
388388 def __init__ (self ):
389- team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s ) <= 1 ]
389+ team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s () ) <= 1 ]
390390 super ().__init__ (team = team )
391391 self .classifier ["long_run_time" ] = False
392392
@@ -405,7 +405,7 @@ def __init__(self):
405405 team = [
406406 s
407407 for s in ordinary_strategies
408- if Classifiers ["memory_depth" ](s ) < float ("inf" )
408+ if Classifiers ["memory_depth" ](s () ) < float ("inf" )
409409 ]
410410 super ().__init__ (team = team )
411411
@@ -424,7 +424,7 @@ def __init__(self):
424424 team = [
425425 s
426426 for s in ordinary_strategies
427- if Classifiers ["memory_depth" ](s ) == float ("inf" )
427+ if Classifiers ["memory_depth" ](s () ) == float ("inf" )
428428 ]
429429 super ().__init__ (team = team )
430430
@@ -440,7 +440,7 @@ class MetaWinnerDeterministic(MetaWinner):
440440 name = "Meta Winner Deterministic"
441441
442442 def __init__ (self ):
443- team = [s for s in ordinary_strategies if not Classifiers ["stochastic" ](s )]
443+ team = [s for s in ordinary_strategies if not Classifiers ["stochastic" ](s () )]
444444 super ().__init__ (team = team )
445445 self .classifier ["stochastic" ] = False
446446
@@ -456,7 +456,7 @@ class MetaWinnerStochastic(MetaWinner):
456456 name = "Meta Winner Stochastic"
457457
458458 def __init__ (self ):
459- team = [s for s in ordinary_strategies if Classifiers ["stochastic" ](s )]
459+ team = [s for s in ordinary_strategies if Classifiers ["stochastic" ](s () )]
460460 super ().__init__ (team = team )
461461
462462
@@ -512,7 +512,7 @@ class NMWEDeterministic(NiceMetaWinnerEnsemble):
512512 name = "NMWE Deterministic"
513513
514514 def __init__ (self ):
515- team = [s for s in ordinary_strategies if not Classifiers ["stochastic" ](s )]
515+ team = [s for s in ordinary_strategies if not Classifiers ["stochastic" ](s () )]
516516 super ().__init__ (team = team )
517517 self .classifier ["stochastic" ] = True
518518
@@ -528,7 +528,7 @@ class NMWEStochastic(NiceMetaWinnerEnsemble):
528528 name = "NMWE Stochastic"
529529
530530 def __init__ (self ):
531- team = [s for s in ordinary_strategies if Classifiers ["stochastic" ](s )]
531+ team = [s for s in ordinary_strategies if Classifiers ["stochastic" ](s () )]
532532 super ().__init__ (team = team )
533533
534534
@@ -546,7 +546,7 @@ def __init__(self):
546546 team = [
547547 s
548548 for s in ordinary_strategies
549- if Classifiers ["memory_depth" ](s ) < float ("inf" )
549+ if Classifiers ["memory_depth" ](s () ) < float ("inf" )
550550 ]
551551 super ().__init__ (team = team )
552552
@@ -565,7 +565,7 @@ def __init__(self):
565565 team = [
566566 s
567567 for s in ordinary_strategies
568- if Classifiers ["memory_depth" ](s ) == float ("inf" )
568+ if Classifiers ["memory_depth" ](s () ) == float ("inf" )
569569 ]
570570 super ().__init__ (team = team )
571571
@@ -581,7 +581,7 @@ class NMWEMemoryOne(NiceMetaWinnerEnsemble):
581581 name = "NMWE Memory One"
582582
583583 def __init__ (self ):
584- team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s ) <= 1 ]
584+ team = [s for s in ordinary_strategies if Classifiers ["memory_depth" ](s () ) <= 1 ]
585585 super ().__init__ (team = team )
586586 self .classifier ["long_run_time" ] = False
587587
0 commit comments