Skip to content

fix(notebooks): fix warnings - #13

Merged
HugoFara merged 1 commit into
mainfrom
fix/notebook-outputs
Sep 18, 2026
Merged

HugoFara merged 1 commit into
mainfrom
fix/notebook-outputs

Conversation

@HugoFara

@HugoFara HugoFara commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • examples/05_topology_co_optimization.ipynb stored two RuntimeWarning: invalid value encountered in subtract from pymoo. Root cause: a failed walker scores +inf on purpose, and pymoo's crowding distance computes inf - inf. nsga_walking_optimization's parallel path and topology_walking_optimization now run pymoo under numpy.errstate(invalid="ignore").
  • The notebook itself calls pylinkage.optimization.co_optimize, whose matching fix is fix(notebooks): illustrate 05 and 12 pylinkage#64; it was re-executed against that branch, so its outputs are clean.
  • tests/test_notebook_outputs.py refuses any committed notebook whose outputs name a home directory.

Test plan

  • uv run pytest — 635 passed
  • ruff, mypy clean

examples/05_topology_co_optimization.ipynb carried two pymoo
RuntimeWarnings in its outputs, and a warning names the file that raised
it — the absolute path of the venv on the machine that executed it. The
warning is expected: a walker that fails scores +inf on purpose, and
pymoo's crowding distance then computes inf - inf. Both pymoo calls now
run under numpy.errstate(invalid="ignore"); the co_optimize path the
notebook uses gets the matching fix from pylinkage (#64). A new test
refuses any notebook whose outputs name a home directory.
@HugoFara HugoFara changed the title fix(notebooks): keep private paths out of committed outputs fix(notebooks): fix warnings Sep 18, 2026
@HugoFara
HugoFara merged commit 978a65f into main Sep 18, 2026
5 checks passed
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