Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor problem but need to be fixed #1

Open
TiangeZhu opened this issue Sep 8, 2021 · 0 comments
Open

minor problem but need to be fixed #1

TiangeZhu opened this issue Sep 8, 2021 · 0 comments
Assignees

Comments

@TiangeZhu
Copy link
Contributor

Error occurs when some scores in MEI format can not be successfully transformed into XML format.

Error content:

  1. Error while loading from xml:invalid literal for int() with base 10: 'X1'
    (because of float, int and string problems)
  2. Error while loading from xml:Both @num and @Numbase attributes are required on tags.
  3. 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.

@TiangeZhu TiangeZhu self-assigned this Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant