Merge commit '8986f62b30e494b68476ff8ef81acd4b1dd22674' * commit '8986f62b30e494b68476ff8ef81acd4b1dd22674': Instead of asserting return a runtime error if the maximum sample size cannot be determined.
Merge commit '8986f62b30e494b68476ff8ef81acd4b1dd22674' * commit '8986f62b30e494b68476ff8ef81acd4b1dd22674': Instead of asserting return a runtime error if the maximum sample size cannot be determined.