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

Last change on this file since 1254 was 1185, checked in by Maciej Komosinski, 2 years ago

Renamed a module; new name is "evolalg_steps"

File size: 287 bytes
RevLine 
[1185]1from evolalg_steps.repair.remove.remove import Remove
[1113]2
3class LambdaRemove(Remove):
[1139]4    def __init__(self, func, *args, **kwargs):
5        super(LambdaRemove, self).__init__(*args, **kwargs)
[1113]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.