Skip to content

Commit

Permalink
add include_gnome option
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 19, 2024
1 parent ab3531d commit c3f0635
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mp_api/client/routes/materials/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def search(
volume: tuple[float, float] | None = None,
weighted_surface_energy: tuple[float, float] | None = None,
weighted_work_function: tuple[float, float] | None = None,
include_gnome: bool = True,
num_chunks: int | None = None,
chunk_size: int = 1000,
all_fields: bool = True,
Expand Down Expand Up @@ -265,6 +266,9 @@ def search(
if theoretical is not None:
query_params.update({"theoretical": theoretical})

if not include_gnome:
query_params.update({"batch_id_not_eq": "gnome_r2scan_statics"})

query_params = {
entry: query_params[entry]
for entry in query_params
Expand Down

0 comments on commit c3f0635

Please sign in to comment.