nvalchemi.csp.packer.PackingReport#
- class nvalchemi.csp.packer.PackingReport(rank, requested_count, accepted_count, stop_reason, generated_count=None)[source]#
One rank’s requested, accepted, generated, and stopping counts.
A complete report has accepted_count equal to requested_count and the target_reached reason. An incomplete report must use another nonempty reason string; implementations may define additional rank-local reasons. generated_count is None when the implementation cannot report it.
- Parameters:
rank (int) – Nonnegative rank represented by this report.
requested_count (int) – Accepted structures requested from this rank.
accepted_count (int) – Structures this rank placed in the result payload.
stop_reason (str) – target_reached for a complete report or a nonempty reason for a shortfall.
generated_count (int or None, optional) – Number of candidates initialized by this rank, if known.
- property complete: bool#
Whether this rank accepted its entire requested quota.