Skip to content

Commit

Permalink
drop redundant warning type
Browse files Browse the repository at this point in the history
  • Loading branch information
arinaLozhkina committed Aug 3, 2023
1 parent 3a65c88 commit d30d984
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/ms3/bs4_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@ def set_instrument(self, staff_id: Union[str, int], trackname):
damaged_dict[staff_id] = new_values["id"]
self.logger.warning(f'''You are trying to assign instruments {pformat(damaged_dict, width=1)} but they are belonging to the same part.
In order to assign two different instruments, you would have to split them in two parts in MuseScore.
For now, I'm assigning '{new_values["id"]}' to all of them.''', extra=dict(message_id=(33,)))
For now, I'm assigning '{new_values["id"]}' to all of them.''', extra=dict(message_id=(31,)))
else:
different_values_set = \
np.where([new_values["id"] != self.fields[staff_key]["id"] for staff_key in staves_within_part])[
Expand Down
1 change: 0 additions & 1 deletion src/ms3/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class MessageType(Enum):
CORRECTED_INSTRUMENT_TRACKNAME_WARNING = 30
INCONSISTENT_INSTRUMENT_CHANGE_WITHIN_PART = 31
FRICTIONLESS_VALIDATION_ERROR_WARNING = 32
INCONSISTENT_INSTRUMENT_CHANGE_WITHIN_PART_TO_UPDATE = 33



Expand Down

0 comments on commit d30d984

Please sign in to comment.