api icon indicating copy to clipboard operation
api copied to clipboard

limit number of materials in pymatgen.ext.matproj

Open EnoshI opened this issue 3 years ago • 1 comments

Hello, I was just wondering if there was a way to limit the number of materials using MPrester's query function, which currently seems to gather all the materials that fit the criteria. I can't really find any info on how I would limit the collected materials.

EnoshI avatar Dec 22 '22 01:12 EnoshI

@EnoshI in the new API client, you can pass both chunk_size and num_chunks to MPRester.summary.search to limit the results.

munrojm avatar Jan 05 '23 20:01 munrojm