We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2931928 commit df2348aCopy full SHA for df2348a
1 file changed
src/utils/bin.typ
@@ -21,6 +21,10 @@
21
let n-bins = if binwidth != none and binwidth > 0 {
22
calc.max(1, int(calc.ceil((hi - lo) / binwidth)))
23
} else {
24
+ assert(
25
+ bins != none and bins > 0,
26
+ message: "bins must be a positive integer; got " + repr(bins),
27
+ )
28
bins
29
}
30
(n-bins: n-bins, width: (hi - lo) / n-bins)
0 commit comments