Skip to content

Can we supress unwanted warning? #226

@chaithyagr

Description

@chaithyagr

In modopt, we present a warning if the gradient and proximity operators dont come from the base classes. However, we do not have very simple basic classes yet given #113 . These warnings below come up in almost every iteration, which makes it very frustating.

Can we suppress it by default (personally I don't feel they add much value). Or can we maybe have user control over it through rc files (long shot though)?

if not any(parent in tree for parent in self._op_parents):
message = '{0} does not inherit an operator parent.'
warn(message.format(str(operator.__class__)))

Are you planning to submit a Pull Request?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions