Changeset 1139 for framspy/evolalg/repair/remove
- Timestamp:
- 05/08/21 12:42:58 (4 years ago)
- Location:
- framspy/evolalg/repair/remove
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/repair/remove/field.py
r1113 r1139 3 3 4 4 class FieldRemove(Remove): 5 def __init__(self, field_name, field_value ):6 super(FieldRemove, self).__init__( )5 def __init__(self, field_name, field_value, *args, **kwargs): 6 super(FieldRemove, self).__init__(*args, **kwargs) 7 7 self.field_name = field_name 8 8 self.field_value = field_value -
framspy/evolalg/repair/remove/function.py
r1113 r1139 3 3 from evolalg.repair.remove.remove import Remove 4 4 class LambdaRemove(Remove): 5 def __init__(self, func ):6 super(LambdaRemove, self).__init__( )5 def __init__(self, func, *args, **kwargs): 6 super(LambdaRemove, self).__init__(*args, **kwargs) 7 7 self.func = func 8 8 -
framspy/evolalg/repair/remove/remove.py
r1113 r1139 5 5 6 6 class Remove(Step): 7 def __init__(self): 7 def __init__(self, *args, **kwargs): 8 super(Remove, self).__init__(*args , **kwargs) 8 9 pass 9 10 … … 13 14 14 15 def call(self, population): 16 super(Remove, self).call(population) 15 17 return [_ for _ in population if not self.remove(_)]
Note: See TracChangeset
for help on using the changeset viewer.