diff --git a/hugo/content/ref/instr/det/spherical-detector/index.md b/hugo/content/ref/instr/det/spherical-detector/index.md index 6b921aa4101a3916038722bc5e5cf36bfb1ca703..22ebe773dfa82b3b8641a4e63a25267af023d624 100644 --- a/hugo/content/ref/instr/det/spherical-detector/index.md +++ b/hugo/content/ref/instr/det/spherical-detector/index.md @@ -72,22 +72,20 @@ start : Low edge of first bin end : Upper edge of last bin """ -GenericScale(name, nbins, bin_boundaries) +GenericScale(name, bin_boundaries) """ Constructs an axis with variable bin size name : The name of the axis -nbins : Number of axis bins -bin_boundaries : Array of size nbins+1 containing low-edges for each bin and upper edge of last bin. +bin_boundaries : Array of even size containing lower and upper edges for each bin. """ ``` In the following example we create a `SphericalDetector` with two axes: an x-axis with variable bin size and a y-axis with fixed bin size. The code and resulting detector plane are shown below. ```python -nxbins = 13 -xedges = [-1.0*deg, -0.7*deg, -0.5*deg, -0.3*deg, -0.2*deg, -0.1*deg, -0.025*deg, 0.025*deg, 0.1*deg, 0.2*deg, 0.3*deg, 0.5*deg, 0.7*deg, 1.0*deg] -xaxis = GenericScale("my-x-axis", nxbins, xedges) +xedges = [-1.0*deg, -0.7*deg, -0.7*deg, -0.5*deg, -0.5*deg, -0.3*deg, -0.3*deg, -0.2*deg, -0.2*deg, -0.1*deg, -0.1*deg, -0.025*deg, -0.025*deg, 0.025*deg, 0.025*deg, 0.1*deg, 0.1*deg, 0.2*deg, 0.2*deg, 0.3*deg, 0.3*deg, 0.5*deg, 0.5*deg, 0.7*deg, 0.7*deg, 1.0*deg] +xaxis = GenericScale("my-x-axis", xedges) yaxis = EquiDivision("my-y-axis", 10, 0.0, 10.)