@@ -97,7 +97,6 @@ function smoothing(fname_count::String, fname_config::String, fname_out::String=
97
97
end
98
98
99
99
100
- function smoothing (fname_count:: String , smoothing_σs:: Array , maxdistkm:: Real )
101
100
"""
102
101
smoothing(fname, smoothing_σs, maxdistkm)
103
102
@@ -113,7 +112,8 @@ used to perform the smoothing.
113
112
julia> smoothing('count.csv', [[1.0, 20]], 50)
114
113
```
115
114
"""
116
-
115
+ function smoothing (fname_count:: String , smoothing_σs:: Array , maxdistkm:: Real ;
116
+ default_distance:: Int64 = 20 )
117
117
df = DataFrame (CSV. File (fname_count));
118
118
df[! ,:h3idx ] = convert .(UInt64,df[! ,:h3idx ]);
119
119
@@ -161,10 +161,8 @@ julia> smoothing('count.csv', [[1.0, 20]], 50)
161
161
else
162
162
d = h3Distance (base, idx[2 ])
163
163
if d isa H3ErrorCode
164
- println (" failed: " , base, " , " , idx[2 ])
165
- else
166
- println (" worked: " , base, " , " , idx[2 ])
167
-
164
+ println (" failed: " , base, " , " , idx[2 ]" . Using default $default_distance " )
165
+ d = default_distance
168
166
end
169
167
170
168
end
0 commit comments