You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error occurs when some scores in MEI format can not be successfully transformed into XML format.
Error content:
Error while loading from xml:invalid literal for int() with base 10: 'X1'
(because of float, int and string problems)
Error while loading from xml:Both @num and @Numbase attributes are required on tags.
Error while loading from xml:unsupported operand type(s) for +: 'float' and 'NoneType'
Current solution:
Workflow.py, in def analyze_patterns_in_opus:
if score.m2_score == None, return empty dictionaries.
It basically works as a "continue"
YET: if the last opus of the corpus happen to have this error, then the function will return empty dictionaries to def analyze_patterns, then no stats will be printed by the end of analysis of an corpus.
Future solution:
Fix in Music21 library. Or, find a better solution in workflow.py.
The text was updated successfully, but these errors were encountered:
Error occurs when some scores in MEI format can not be successfully transformed into XML format.
Error content:
(because of float, int and string problems)
Current solution:
Workflow.py, in def analyze_patterns_in_opus:
if score.m2_score == None, return empty dictionaries.
It basically works as a "continue"
YET: if the last opus of the corpus happen to have this error, then the function will return empty dictionaries to def analyze_patterns, then no stats will be printed by the end of analysis of an corpus.
Future solution:
Fix in Music21 library. Or, find a better solution in workflow.py.
The text was updated successfully, but these errors were encountered: