Commit cda22bf2 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor fix after optimade python tools update.

parent 77a6e40c
Pipeline #76485 passed with stages
in 20 minutes and 16 seconds
......@@ -16,7 +16,7 @@ from typing import Dict
from elasticsearch_dsl import Q
from optimade.filterparser import LarkParser
from optimade.filtertransformers.elasticsearch import Transformer, Quantity
from optimade.filtertransformers.elasticsearch import ElasticTransformer, Quantity
class FilterException(Exception):
......@@ -57,7 +57,7 @@ def parse_filter(filter_str: str) -> Q:
_quantities['elements'].nested_quantity = _quantities['elements_ratios']
_quantities['elements_ratios'].nested_quantity = _quantities['elements_ratios']
_transformer = Transformer(quantities=_quantities.values())
_transformer = ElasticTransformer(quantities=_quantities.values())
try:
parse_tree = _parser.parse(filter_str)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment