Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Dec 11, 2020
1 parent 73b9d7b commit df9389a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "neighborhood_analysis"
version = "0.2.0"
version = "0.2.1"
authors = ["Mr-Milk <zym.zym1220@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ pub fn count_neighbors<'a>(
storage.get_mut(&reverse_comb).unwrap().push(count);
} else {
match storage.get_mut(&comb) {
None => storage.get_mut(&reverse_comb).unwrap().push(count),
Some(s) => s.push(count),
None => storage.get_mut(&reverse_comb).unwrap().push(count * 2),
Some(s) => s.push(count * 2),
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


start = time()
neighbors = get_point_neighbors(points, 5.0)
neighbors = get_point_neighbors(points, 10.0)
end = time()
print(f"search point neighbors used {(end-start):.5f}s")

Expand Down

0 comments on commit df9389a

Please sign in to comment.