Skip to content

Commit

Permalink
Fix molecules hint scheme (#775)
Browse files Browse the repository at this point in the history
* Fix molecules hint scheme

* Remove test
  • Loading branch information
munrojm committed Jul 25, 2023
1 parent bb905f0 commit 4e51d96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions emmet-api/emmet/api/routes/molecules/summary/hint_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@ def generate_hints(self, query):
for param in query["criteria"]:
if "composition" in param:
return {"hint": {"composition.$**": 1}}
elif "nelements" in param:
return {"hint": {"nelements": 1}}
elif "has_props" in param:
return {"hint": {"has_props": 1}}

return {"hint": {}}
11 changes: 0 additions & 11 deletions emmet-api/tests/molecules/summary/test_hint_scheme.py

This file was deleted.

0 comments on commit 4e51d96

Please sign in to comment.