Constitutional descriptor added#642
Open
pkacprzak5 wants to merge 1 commit into
Open
Conversation
j-adamczyk
requested changes
Jul 13, 2026
| count=mol_hydrogens.GetNumAtoms(), | ||
| ) | ||
| sums = _CARBON_NORMALIZED_PROPERTIES[:, atomic_numbers].sum(axis=1) | ||
| means = sums / atomic_numbers.size if atomic_numbers.size else np.full(8, np.nan) |
Member
There was a problem hiding this comment.
You can assume there is at least 1 atom
| ], | ||
| dtype=np.float64, | ||
| ) | ||
| carbon_values = property_values[:, [6]] |
| assert_allclose(values, expected, rtol=1e-6, equal_nan=True) | ||
|
|
||
|
|
||
| def test_constitutional_is_connected_to_calculator(): |
Member
There was a problem hiding this comment.
This would be a pretty expensive test. Let's remove this for now, and later consider how to wire together individual tests and calculator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Constitutional descriptor added and wired to calculator of mordred
Checklist before requesting a review
make test-coverage)make docsand seedocs/_build/index.html)