Skip to content

Commit cd0a294

Browse files
committed
Warning for invisible objects.
1 parent 840e763 commit cd0a294

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

partitura/io/importmusicxml.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ def load_musicxml(
224224
A `Score` instance.
225225
226226
"""
227+
#NOTE: raising warning for ignore_invisible_objects is not ideal and it should be changed in the future
228+
if ignore_invisible_objects:
229+
warnings.warn(
230+
"Be advised that the 'ignore_invisible_objects' option might sometimes lead "
231+
"to parsing errors for unusual musicxml files. \n"
232+
"Note that when ignore_invisible_objects is False (the default), the parsing works as expected as before."
233+
)
227234

228235
xml = None
229236
if isinstance(filename, str):

0 commit comments

Comments
 (0)