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

Optimising for availability queries #50

Closed
wants to merge 12 commits into from
Closed

Conversation

prquinlan
Copy link
Contributor

Pull Request Contents

♻️ Refactor - reducing repetition of similar code so that the queries are easier to maintain and adjust over time.

Description

Removed repetition that was created to initiate the first data frame and then the subsequent merges.

Related Issues or other material

# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
Previously it first seeded the dataframe from the first in the list, then interated through the rest of the list.

All but the operator and the label was the same, therefore now account for when its the first iteration of the loop, and it switches the label to use on the dataframe.

For the statement building to switch between equals and not equals a new function created.
@prquinlan prquinlan requested review from beforan and vpnu January 23, 2025 15:19
@prquinlan prquinlan marked this pull request as ready for review January 24, 2025 20:13
# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
…_optimise

# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
@prquinlan prquinlan closed this Jan 27, 2025
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