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 regular expression matching in query_networks #275

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

ianmkenney
Copy link
Collaborator

Since attributes of GufeTokenizables that are set to None are not explicitly stored in the Neo4j database, regular expression fails to match nodes. Because of this, we no longer introduce wildcards when a attribute pattern is set to None. Instead, we completely remove that attribute regex condition from the WHERE clause.

The test for the query_networks method was also changed so a network without a name is included.

Closes #273

Since attributes of GufeTokenizables that are set to None are not
explicitly stored in the Neo4j database, regular expression fails to
match nodes. Because of this, we no longer introduce wildcards when a
attribute pattern is set to None. Instead, we completely remove that
attribute regex condition from the WHERE clause.
@ianmkenney
Copy link
Collaborator Author

@dotsdl the CI is failing since gufe v1.0.0 is being used. Once #254 changes are made, I think the tests will pass.

Copy link
Member

@dotsdl dotsdl left a comment

Choose a reason for hiding this comment

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

Great work @ianmkenney! Thank you for solving this one!!

@dotsdl dotsdl merged commit e393b60 into main Jun 5, 2024
4 checks passed
@dotsdl dotsdl deleted the fix-regex_query_nullfield branch June 5, 2024 00:35
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.

Neo4jStore.query_networks doesn't yield AlchemicalNetworks with name = None
2 participants