Skip to content

Fix genetic algorithm crash + broken weather tests#185

Open
knQzx wants to merge 2 commits into52North:mainfrom
knQzx:fix/genetic-no-feasible-and-weather-tests
Open

Fix genetic algorithm crash + broken weather tests#185
knQzx wants to merge 2 commits into52North:mainfrom
knQzx:fix/genetic-no-feasible-and-weather-tests

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Mar 24, 2026

Found a couple of issues while reading through the code:

I also emailed gsoc@52north.org about GSoC 2026 (knqzx0@gmail.com).

knQzx added 2 commits March 24, 2026 16:02
pymoo returns None for res.F/res.X when all candidates violate
constraints, which crashes terminate() with AttributeError.
Now catches that and raises a proper error message.

Fixes 52North#164
these had like 5 things wrong at once — no test_ prefix,
wrong number of params, assertions comparing a variable
to itself, wrong expected values, copy-pasted param names.
rewrote them properly with correct values and added edge
cases + a roundtrip test.

Fixes 52North#161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant