broadinstitute / catch

A package for designing compact and comprehensive capture probe sets.
MIT License
76 stars 16 forks source link

Add error message explaining why probe count constraint cannot be satisfied #15

Closed haydenm closed 6 years ago

haydenm commented 6 years ago

When the limit on the number of probes to design is not satisfied, this now raises a custom exception (CannotSatisfyProbeCountConstraintError) with a message explaining the likely reason. Previously, only an assertion failed and it may have been unclear why. This also raises the exception in the (n>2)-dimensional search, rather than only in the standard search.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.02%) to 94.74% when pulling 307d25ec6318d9223b8fd384de6702dd20364c75 on fail-count-assertion-message into 544bce747d477a9986564f7ad5c630473428df75 on master.