Skip to content

Commit be9f566

Browse files
committed
more more more more more more smoothing compatibility updates
1 parent 12f2ee1 commit be9f566

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/seismicity/boxcounting.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ end
1919
if !(@isdefined geoToH3) && (@isdefined latLngToCell)
2020
@info "Defining geoToH3 compatibility shim"
2121
function geoToH3(coord::GeoCoord, res::Integer)
22-
if res isa Int32
23-
res = Int64(res)
24-
end
22+
#if res isa Int32
23+
# res = Int64(res)
24+
#end
2525
return latLngToCell(LatLng(coord.lat, coord.lon), res)
2626
end
2727

src/seismicity/smoothing.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ if !(@isdefined geoToH3) && (@isdefined latLngToCell)
4848
end
4949

5050

51+
if !isdefined kRing
52+
@info "defining kRing"
53+
const kRing = gridDisk
54+
end
55+
56+
57+
5158
# the function and api have changed; the H3.jl library as of 3.2 is not defined correctly
5259
edge_length_check = edgeLengthKm(3)
5360
if edge_length_check isa Number

0 commit comments

Comments
 (0)