source:
framspy/evolalg_steps/repair/remove/function.py
@
1185
Last change on this file since 1185 was 1185, checked in by , 17 months ago | |
---|---|
File size: 287 bytes |
Line | |
---|---|
1 | from evolalg_steps.repair.remove.remove import Remove |
2 | |
3 | class 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.