-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
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?
jgrewe
Metadata
Metadata
Assignees
Labels
No labels