Skip to content

Conversation

@r3kste
Copy link
Collaborator

@r3kste r3kste commented Dec 6, 2025

This PR adds fixes for some recent failures in CI.

  1. Add pytorch-cpu as a conda dependency, to avoid installation of pytorch-cuda through pip.
  2. Ignore mypy warnings for incompatible assignment to pandas DataFrame. An alternative to fix this would be to convert the list to a np.array or pd.Series. However, this might cause unnecessary overhead as internally, pandas doesn't seem to convert the list.
  3. Skip a flaky doctest which fails due comparison of positive zero with negative zero, similar to CI failure on 'Run code snippets in documentation' due to negative signed zero. #642.

@r3kste r3kste mentioned this pull request Dec 6, 2025
3 tasks
@codecov
Copy link

codecov bot commented Dec 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/optimagic/optimization/history.py 93.63% <100.00%> (ø)
src/optimagic/visualization/slice_plot.py 96.12% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timmens
Copy link
Member

timmens commented Dec 7, 2025

Thanks for the fix! Can you ignore the failing doctest? We will have to fix this more robustly in the future, but for now that will be fine! Thanks!

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.

2 participants