Skip to content

Commit

Permalink
Fix search endpoint from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Munro committed Jun 14, 2021
1 parent ff8e00c commit 8eae0ee
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/mp_api/routes/search/resources.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Optional

import numpy as np
from emmet.core.search import SearchDoc
from fastapi import Query
from mp_api.core.query_operator import PaginationQuery, SortQuery, SparseFieldsQuery
from mp_api.core.resource import GetResource
from mp_api.routes.electronic_structure.query_operators import ESSummaryDataQuery

from maggma.api.query_operator import (
PaginationQuery,
SortQuery,
SparseFieldsQuery,
NumericQuery,
)
from maggma.api.resource import ReadOnlyResource, AggregationResource
from mp_api.routes.materials.query_operators import (
DeprecationQuery,
ElementsQuery,
Expand All @@ -16,16 +17,11 @@
from mp_api.routes.search.query_operators import (
HasPropsQuery,
MaterialIDsSearchQuery,
SearchDielectricPiezoQuery,
SearchElasticityQuery,
SearchIsStableQuery,
SearchIsTheoreticalQuery,
SearchMagneticQuery,
SearchStatsQuery,
)
from mp_api.routes.surface_properties.query_operators import SurfaceMinMaxQuery
from mp_api.routes.thermo.query_operators import ThermoEnergyQuery
from scipy.stats import gaussian_kde
from typing_extensions import Literal


def search_resource(search_store):
Expand Down

0 comments on commit 8eae0ee

Please sign in to comment.