Skip to content

global Warnings flag #75

@demisjohn

Description

@demisjohn

Migrate all functions to use global Warnings=True/False.

Implemented a WARN() function, with set_WARN() & unset_WARN().

To do this, make sure all func's that have a warn argument set it to False by default (global WARN() is True by default).

Then change
if warn: --> if warn or WARN():

and alter docstring to:

warn : { True | False }, optional
        Print a warning if the node name exists?  Defaults to False, but still prints if the global pyFIMM.set_WARN() is True, which it is by default.   Use set_WARN()/unset_WARN() to alter.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions