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

Treat withdrawn samples in sub-cohort prepare correctly [VS-772] #8156

Merged
merged 10 commits into from
Jan 23, 2023

Conversation

rsasch
Copy link

@rsasch rsasch commented Jan 12, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

❗ No coverage uploaded for pull request base (ah_var_store@c15e5fc). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@               Coverage Diff                @@
##             ah_var_store     #8156   +/-   ##
================================================
  Coverage                ?   86.177%           
  Complexity              ?     35138           
================================================
  Files                   ?      2173           
  Lines                   ?    165045           
  Branches                ?     17794           
================================================
  Hits                    ?    142231           
  Misses                  ?     16470           
  Partials                ?      6344           

@@ -89,12 +89,12 @@ def get_all_sample_ids(fq_destination_table_samples, only_output_vet_tables, fq_


def create_extract_samples_table(control_samples, fq_destination_table_samples, fq_sample_name_table,
fq_sample_mapping_table, honor_withdrawn: bool):
fq_sample_mapping_table, honor_withdrawn):
Copy link
Collaborator

Choose a reason for hiding this comment

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

was there a reason to remove the type ascription?

Copy link
Author

Choose a reason for hiding this comment

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

I didn't understand why it was there and nowhere else, and it worked without it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah IMHO we probably should use these type hints liberally; I'm also unsure why this was the exception rather than the rule. Perhaps something to discuss going forward for coding standards.

These type hints are not enforced by the Python runtime so code will work the same with or without them. They're intended mostly for the benefit of developers so a Python-aware IDE can warn if an actual parameter of an incompatible type is being passed.

Copy link

@koncheto-broad koncheto-broad left a comment

Choose a reason for hiding this comment

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

LGTM

@rsasch rsasch merged commit 9cf8021 into ah_var_store Jan 23, 2023
@rsasch rsasch deleted the rsa_vs_772 branch January 23, 2023 17:38
@rsasch rsasch restored the rsa_vs_772 branch January 23, 2023 21:53
@rsasch rsasch deleted the rsa_vs_772 branch January 23, 2023 21:55
@rsasch rsasch restored the rsa_vs_772 branch January 23, 2023 22:04
@rsasch rsasch deleted the rsa_vs_772 branch January 23, 2023 22:07
This was referenced Mar 17, 2023
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.

4 participants