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 metadata issues with quant sf files #2368

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

wvauclain
Copy link
Contributor

Issue Number

#2289

Purpose/Implementation Notes

Mark samples without quant.sf files as filtered so that they are not included in the metadata.

It looks like what was happening was that samples without quant.sf files were not being filtered out properly, so they would still be included in the metadata as samples in the compendia.

Types of changes

What types of changes does your code introduce?

  • Bugfix (non-breaking change which fixes an issue)

Functional tests

I modified the quantpendia unit test, and checked that my fix made it pass.

Checklist

Put an x in the boxes that apply.

  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Screenshots

Please attach any screenshots that illustrate these changes.

@@ -1033,7 +1033,7 @@ def download_computed_file(download_tuple: Tuple[ComputedFile, str]):
logger.exception("Failed to sync computed file", computed_file_id=latest_computed_file.pk)


def sync_quant_files(output_path, samples: List[Sample]):
def sync_quant_files(output_path, samples: List[Sample], filtered_samples: Dict):
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you note in the docstring that this function modifies filtered_samples to include samples that it's unable to sync?

Copy link
Contributor

@kurtwheeler kurtwheeler left a comment

Choose a reason for hiding this comment

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

Left a small comment about a docstring, but other than that this LGTM! I'm excited to rerun the quantpendia and see if they look better!

@wvauclain wvauclain force-pushed the wvauclain/quantpendia-metadata branch from 0bad3a7 to 67bc022 Compare July 1, 2020 18:57
@wvauclain wvauclain merged commit 24182d9 into dev Jul 1, 2020
@wvauclain wvauclain deleted the wvauclain/quantpendia-metadata branch July 1, 2020 18:59
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