Skip to content

Commit ecc38ec

Browse files
authored
Update ox.py (#646)
- Fix typo in None check
1 parent a76fc5e commit ecc38ec

File tree

1 file changed

+1
-1
lines changed
  • pymoo/operators/crossover

1 file changed

+1
-1
lines changed

pymoo/operators/crossover/ox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def ox(receiver, donor, seq=None, shift=False):
3636
assert len(donor) == len(receiver)
3737

3838
# the sequence which shall be use for the crossover
39-
seq = seq if not None else random_sequence(len(receiver))
39+
seq = seq if seq is not None else random_sequence(len(receiver))
4040
start, end = seq
4141

4242
# the donation and a set of it to allow a quick lookup

0 commit comments

Comments
 (0)