Skip to content

Commit a1bd7ab

Browse files
committed
Make bins creation more descriptive
1 parent e963a98 commit a1bd7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osmnx/bearing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def _bearings_distribution(
277277
# Bins will be merged in pairs after the histogram is computed. The last
278278
# bin edge is the same as the first (i.e., 0 degrees = 360 degrees).
279279
num_split_bins = num_bins * 2
280-
split_bin_edges = np.arange(num_split_bins + 1) * 360 / num_split_bins
280+
split_bin_edges = np.linspace(0, 360, num_split_bins + 1)
281281

282282
bearings, weights = _extract_edge_bearings(G, min_length, weight)
283283
split_bin_counts, split_bin_edges = np.histogram(

0 commit comments

Comments
 (0)