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

Fix Stage modifiers not applying + tests #22

Merged
merged 6 commits into from
Jun 30, 2023
Merged

Conversation

XapaJIaMnu
Copy link
Contributor

Fix + tests

@XapaJIaMnu XapaJIaMnu requested a review from jelmervdl June 25, 2023 21:15
Copy link
Contributor

@jelmervdl jelmervdl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know whether you agree with that explicit modifier list combination is better than implicit concatenation, and I'll push my changes to support it.

src/opustrainer/trainer.py Outdated Show resolved Hide resolved
src/opustrainer/trainer.py Outdated Show resolved Hide resolved
tests/test_endtoend.py Outdated Show resolved Hide resolved
XapaJIaMnu and others added 5 commits June 30, 2023 10:45
Note that I changed how line modifiers are wrapped so that they look more like classes, and checking for them in tests is more straightforward.
Also makes it more explicit that it is wrong, and correctly raises a `Tags modifier should to be the last modifier to be applied, as otherwise other modifiers might alter the inserted tags themselves.` warning.
@jelmervdl jelmervdl merged commit e06fb84 into main Jun 30, 2023
@jelmervdl jelmervdl deleted the bugfix_advanced_modifiers branch June 30, 2023 11:40
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

Successfully merging this pull request may close these issues.

2 participants