materialsproject / api

New API client for the Materials Project
https://materialsproject.github.io/api/
Other
105 stars 33 forks source link

[New feature request] Make spacegroup_number a list? #902

Open fraricci opened 3 months ago

fraricci commented 3 months ago

I'd like to query the materials that have their spg in a list of possible ones. I was expecting to provide that list as input to the query, but the spacegroup_number accepts only an Int.

Is it possible to add this possibility? Is there another way to perform that query, maybe using a mongodb syntax?

Thanks!

https://github.com/materialsproject/api/blob/971d1ec8b8da7794536bd9b2c4d8cf260ea0d01e/mp_api/client/routes/materials/summary.py#L58