Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes final use of deprecated .feasible attribute. #681

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samgdotson
Copy link

This PR addresses a warning I received

../../miniforge3/envs/2025-dotson-thesis/lib/python3.11/site-packages/pymoo/core/individual.py:617: 60100 warnings
  /Users/samdotson/miniforge3/envs/2025-dotson-thesis/lib/python3.11/site-packages/pymoo/core/individual.py:617: DeprecationWarning: The ``feasible`` property for ``pymoo.core.individual.Individual`` is deprecated
    v = getattr(self, key)

This seemed strange since Individual isn't a component of pymoo that I use explicitly. I tracked down the remaining instance of .feasible to replacement.py.

Hopefully, this fully addresses the internal use of .feasible and the attribute can be retired. Though I haven't done that here.

An early attempt to resolve this warning can was from #631, but it missed a spot 😄.

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