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

Aded an endpoint for retrieving recent Qc states. #225

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

mgcam
Copy link
Member

@mgcam mgcam commented May 23, 2024

No description provided.

Copy link
Collaborator

@nerdstrike nerdstrike left a comment

Choose a reason for hiding this comment

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

Two minor concerns.

min_num_weeks = int(min_interval.days / 7 - 1)

assert min_num_weeks > 2
# Set the look-back number of weeks to teh period with no records.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oblig. typo

assert response.status_code == 200
response_data = response.json()
assert len(response_data) == 18
assert sum([len(l) for (id, l) in response_data.items()]) == 34
Copy link
Collaborator

@nerdstrike nerdstrike May 24, 2024

Choose a reason for hiding this comment

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

In most of the subsequent .items() list comprehensions, you could probably just as well call .values()? I don't think you use id at all.

@nerdstrike nerdstrike merged commit 698ce11 into wtsi-npg:devel Jun 4, 2024
4 checks passed
@mgcam mgcam deleted the recently_qced_wells branch June 7, 2024 17:11
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