Skip to content

Commit

Permalink
Update ox.py (#646)
Browse files Browse the repository at this point in the history
- Fix typo in None check
  • Loading branch information
binh120702 authored Nov 24, 2024
1 parent a76fc5e commit ecc38ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoo/operators/crossover/ox.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def ox(receiver, donor, seq=None, shift=False):
assert len(donor) == len(receiver)

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

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

0 comments on commit ecc38ec

Please sign in to comment.