nvalchemi.csp.packer.CandidateBudgetPacker#

class nvalchemi.csp.packer.CandidateBudgetPacker(*args, **kwargs)[source]#

Optional interface for packers with an observable candidate budget.

resolve_candidate_budget(*, num_samples, **pack_options)[source]#

Return the candidate cap that a call would use without sampling.

Parameters:
  • num_samples (int) – Requested number of accepted structures.

  • **pack_options – Options that affect the cap or are accepted by the pack operation.

Returns:

Nonnegative candidate cap, or None for an unlimited search.

Return type:

int or None