Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Disable warning output #305

@JuliaSprenger

Description

@JuliaSprenger

The output of warnings can lead to hundreds of warning printed, eg when loading an odML file which does not contain section types.
MWE generating a warning
warning[None:6:<section>]: missing element <type> within <section> tag{'oid': '275ba9ae-7d35-4c5b-ad6d-9727ec0a625b', 'name': 'mysec'}

doc = odml.Document()
doc.append(odml.Section('mysec'))
odml.fileio.save(doc, 'testfile.odml')
odml.fileio.load('testfile.odml')

This can not be disabled as odml warnings are not using the warnings module. Is there a reason for not using the warnings module for generation of warnings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions