source: framspy/evolalg_steps/repair/remove/function.py

Last change on this file was 1185, checked in by Maciej Komosinski, 20 months ago

Renamed a module; new name is "evolalg_steps"

File size: 287 bytes
Line 
1from evolalg_steps.repair.remove.remove import Remove
2
3class LambdaRemove(Remove):
4    def __init__(self, func, *args, **kwargs):
5        super(LambdaRemove, self).__init__(*args, **kwargs)
6        self.func = func
7
8    def remove(self, individual):
9        return self.func(individual)
Note: See TracBrowser for help on using the repository browser.