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

Make val_monitor a parameter of the Task constructor #1587

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

Conversation

FrenchKrab
Copy link
Contributor

It's currently impossible to change a task val_monitor without changing the class definition (and it's not trivial to dynamically replace a @property definition)(but it can be done ...).

This PR adds a val_monitor parameter to (sub)task constructors. To change the default val_monitor of a task we can simply change the default parameter instead of overriding the property (see multilabel.py) (unless more advanced logic is needed). All existing code should still be working the same after this PR.

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.

None yet

1 participant