Skip to content

Commit

Permalink
Actually fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: BenCurran98 <[email protected]>
  • Loading branch information
BenCurran98 committed Feb 3, 2025
1 parent 5a1e7de commit 06c9085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatial_info.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function get_spatial_info(points::AbstractVector{SVector{3, T}}, scale::AxisInfo
return SpatialInfo(scale, offset, AxisInfo(Range(x_max, x_min), Range(y_max, y_min), Range(z_max, z_min)))
end

get_spatial_info(pc::Union{AbstractVector{<:NamedTuple}, FlexTable}, scale::Union{Real, SVector, AxisInfo}) = get_spatial_info(pc.position, scale)
get_spatial_info(pc::Union{AbstractVector{<:NamedTuple}, FlexTable}, scale::Union{Real, SVector, AxisInfo} = POINT_SCALE) = get_spatial_info(pc.position, scale)

function determine_offset(min_value, max_value, scale; threshold=10^7)
s = round(Int64, ((min_value + max_value) / 2) / scale / threshold)
Expand Down

0 comments on commit 06c9085

Please sign in to comment.