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

Add reserve teams to break. #2498

Merged
merged 4 commits into from
Sep 15, 2024

Conversation

teymour-aldridge
Copy link
Contributor

Should fix #2474.

I'm not sure where the tests (if any) for the debate break generator are – I've just tested this manually using the BP 88 team sample setup. If you could point me to where they are, will add some for this.

@teymour-aldridge teymour-aldridge marked this pull request as draft September 11, 2024 15:39
@teymour-aldridge teymour-aldridge marked this pull request as ready for review September 11, 2024 15:40
tabbycat/breakqual/models.py Outdated Show resolved Hide resolved
tabbycat/breakqual/models.py Outdated Show resolved Hide resolved
tabbycat/breakqual/base.py Outdated Show resolved Hide resolved
"break_rank": break_rank,
"remark": (
BreakingTeam.REMARK_RESERVE
if self.break_size < rank <= self.reserve_size + self.break_size
Copy link
Member

Choose a reason for hiding this comment

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

x < y < z is neat! I wonder though if we should do something akin to exclude_capped_teams() in aida.py for reserve teams rather than have this logic here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've implemented something along these lines in eed4975, not sure if that's exactly what you had in mind.

@tienne-B tienne-B force-pushed the reserve_break branch 2 times, most recently from 47a4ac7 to 082d3d8 Compare September 13, 2024 13:44
@tienne-B
Copy link
Member

tienne-B commented Sep 13, 2024

Hey @teymour-aldridge ! I've added a commit to clean a few things up using the exclude_reserve_teams() method. I think this method would be the best as to allow more subclassing (like with AIDA) and separate the concerns of the compute_break method. Feel free to overwrite the commit though.

For AIDA, breaks are capped to a certain number per institution, and this could cause some problems in deciding reserve teams, as a capped reserve may become eligible if the absent team is from their institution. By marking a team as absent though, the break is updated, and could include them, so it shouldn't be a problem.

@teymour-aldridge
Copy link
Contributor Author

Hey @teymour-aldridge ! I've added a commit to clean a few things up using the exclude_reserve_teams() method. I think this method would be the best as to allow more subclassing (like with AIDA) and separate the concerns of the compute_break method. Feel free to overwrite the commit though.

Thanks! Definitely a lot cleaner :)

For AIDA, breaks are capped to a certain number per institution, and this could cause some problems in deciding reserve teams, as a capped reserve may become eligible if the absent team is from their institution. By marking a team as absent though, the break is updated, and could include them, so it shouldn't be a problem.

👍🏽

teymour-aldridge and others added 4 commits September 15, 2024 16:20
This commit creates a new "add_reserve_teams" method and removes the
"create_or_update" remark default and the reserve teams in compute_break
as having the same effect.

It also consolidates the generated DB migrations, and removes the
extraneous "REMARK_" prefix on Remark enum values.
@tienne-B tienne-B merged commit 50ba239 into TabbycatDebate:develop Sep 15, 2024
3 of 4 checks passed
@teymour-aldridge teymour-aldridge deleted the reserve_break branch October 6, 2024 20:41
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.

Create reserve team slots for breaks
2 participants