Skip to content

Commit

Permalink
Electrodes now uses numeric query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Munro committed May 28, 2021
1 parent 5b3cdd5 commit 4d05347
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mp_api/routes/electrodes/resources.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from maggma.api.query_operator.dynamic import NumericQuery
from maggma.api.resource import ReadOnlyResource
from emmet.core.electrode import InsertionElectrodeDoc

Expand All @@ -18,12 +19,12 @@ def insertion_electrodes_resource(insertion_electrodes_store):
query_operators=[
ElectrodeFormulaQuery(),
ElementsQuery(),
VoltageStepQuery(),
InsertionVoltageStepQuery(),
InsertionElectrodeQuery(),
NumericQuery(model=InsertionElectrodeDoc),
SortQuery(),
PaginationQuery(),
SparseFieldsQuery(InsertionElectrodeDoc, default_fields=["battery_id", "last_updated"],),
SparseFieldsQuery(
InsertionElectrodeDoc, default_fields=["battery_id", "last_updated"],
),
],
tags=["Electrodes"],
)
Expand Down

0 comments on commit 4d05347

Please sign in to comment.