Skip to content

Coverage fix#74

Merged
jthorton merged 2 commits intomasterfrom
coverage_fix
Apr 8, 2021
Merged

Coverage fix#74
jthorton merged 2 commits intomasterfrom
coverage_fix

Conversation

@jthorton
Copy link
Copy Markdown
Contributor

@jthorton jthorton commented Mar 26, 2021

Description

This PR fixes the coverage filter and stops failed molecules from getting past the step. This was caused by the use of the molecule index when doing a glob search which should have been padded using zfill. The test to catch this has been updated as well.

Todos

Notable points that this PR has either accomplished or will accomplish.

Questions

  • I saw some strange coverage report fails related to missing charges when testing, so I have removed all electrostatic parameter handlers is there any danger to doing this?

Status

  • Ready to go

@jthorton jthorton requested review from dotsdl and j-wags March 30, 2021 13:26
Copy link
Copy Markdown
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

Nice work, @jthorton. This was a super subtle issue, and I like the concise fix :-)

Comment thread openff/benchmark/cli.py
Comment on lines +856 to +858
common_id = f"{success_mol.properties['group_name']}-{str(success_mol.properties['molecule_index']).zfill(5)}"
# get all conformer files
conformer_files = glob.glob(os.path.join(input_directory, f"{common_id}*"))
conformer_files = glob.glob(os.path.join(input_directory, f"{common_id}-*.sdf"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah! Great catch. This bug was very subtle.

@jthorton jthorton merged commit b2c4e0e into master Apr 8, 2021
@jthorton jthorton deleted the coverage_fix branch April 8, 2021 12:55
@dotsdl
Copy link
Copy Markdown
Member

dotsdl commented Apr 8, 2021

Thank you both!

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.

Make Boron-containing molecules fail out of workflow in coverage report

3 participants