Skip to content

Commit 07d8c48

Browse files
committed
fix
1 parent ccbad46 commit 07d8c48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scaling/scaling.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ end
9898
rescale_gradient(r::StepRange, g) = g / r.step
9999
rescale_gradient(r::UnitRange, g) = g
100100

101-
@static if isdefined(:FloatRange) & isa(:FloatRange, DataType)
101+
@static if isdefined(:FloatRange) & isa(FloatRange, DataType)
102102
rescale_gradient(r::LinSpace, g) = g * r.divisor / (r.stop - r.start)
103103
rescale_gradient(r::FloatRange, g) = g * r.divisor / r.step
104104
coordlookup(r::LinSpace, x) = (r.divisor * x + r.stop - r.len * r.start) / (r.stop - r.start)
105105
coordlookup(r::FloatRange, x) = (r.divisor * x - r.start) / r.step + one(eltype(r))
106-
boundstep(r::LinSpace) = ((r.stop - r.start) / r.divisor) / 3
107-
boundstep(r::FloatRange) = r.step / 3
106+
boundstep(r::LinSpace) = ((r.stop - r.start) / r.divisor) / 2
107+
boundstep(r::FloatRange) = r.step / 2
108108
end
109109

110110
"""

0 commit comments

Comments
 (0)