Skip to content

Commit

Permalink
Add musicsheet to E2E script
Browse files Browse the repository at this point in the history
  • Loading branch information
JosselinSomervilleRoberts committed Mar 15, 2024
1 parent 3108f28 commit 12b95bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/image2structure/end2end.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def main():
f"{command_base} --tmp-path {args.destination_path}/tmp/{args.type}/{category} {latex_suffix}"
f" >> {args.destination_path}/logs/{args.type}/{category}.log"
)
elif args.type == "musicsheet":
for i, category in enumerate(["music"]):
music_suffix: str = f"musicsheet --subcategory {category}"
collect_commands.append(
f"{command_base} --tmp-path {args.destination_path}/tmp/{args.type}/{category} {music_suffix}"
f" >> {args.destination_path}/logs/{args.type}/{category}.log"
)
else:
raise ValueError(f"Invalid type: {args.type}")
os.makedirs(f"{args.destination_path}/logs/{args.type}", exist_ok=True)
Expand Down

0 comments on commit 12b95bd

Please sign in to comment.