Skip to content

Commit

Permalink
add print to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrll committed Jul 1, 2022
1 parent 1a95f7c commit 5aad199
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmogony_builder"
version = "0.12.4"
version = "0.12.5"
authors = ["Adrien Matissart <a.matissart@qwantresearch.com>", "Antoine Desbordes <antoine.desbordes@gmail.com>"]
license = "Apache-2.0"
repository = "https://github.com/osm-without-borders/cosmogony"
Expand Down
2 changes: 1 addition & 1 deletion cosmogony/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmogony"
version = "0.12.4"
version = "0.12.5"
authors = ["Adrien Matissart <a.matissart@qwantresearch.com>", "Antoine Desbordes <antoine.desbordes@gmail.com>"]
license = "Apache-2.0"
repository = "https://github.com/osm-without-borders/cosmogony"
Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ fn type_zones(
fn compute_labels(zones: &mut [Zone], filter_langs: &[String]) {
info!("computing all zones's label");
let nb_zones = zones.len();
println!("{:?}", nb_zones);
for i in 0..nb_zones {
let (mslice, z) = MutableSlice::init(zones, i);
z.compute_labels(&mslice, filter_langs);
Expand Down Expand Up @@ -192,12 +193,14 @@ pub fn create_ontology(
type_zones(zones, stats, country_code, &inclusions)?;

build_hierarchy(zones, inclusions);

println!("{:?}", zones);
println!("aaaaaaaa");
if !disable_voronoi {
compute_additional_cities(zones, parsed_pbf, ztree);
}

println!("bbbbbbb");
zones.iter_mut().for_each(|z| z.compute_names());
println!("{:?}", zones);

compute_labels(zones, filter_langs);

Expand Down
2 changes: 0 additions & 2 deletions src/zone_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl ZoneExt for Zone {
.unwrap_or_else(|| "".to_string());

let international_names = get_international_names(tags, name);

Some(Self {
id: index,
osm_id: osm_id_str,
Expand Down Expand Up @@ -326,7 +325,6 @@ impl ZoneExt for Zone {
})
.collect();

println!("{:?}", international_labels);
self.international_labels = international_labels;
self.label = label;
}
Expand Down

0 comments on commit 5aad199

Please sign in to comment.