From 55c0ab69737927180257f0afb5f5bf882d25e00d Mon Sep 17 00:00:00 2001 From: Matthieu Viry Date: Mon, 11 Mar 2024 13:57:35 +0100 Subject: [PATCH] Prepare for 0.4.2 release --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- README.md | 6 +++--- src/polygons.rs | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a4436..ccdf259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Changelog +### 0.4.2 (2024-03-11) + +- Fix bug in `area` function. Note that given the use made of this function, it shouldn't have cause issues with the contours created. + + ### 0.4.1 (2024-01-15) - Fix README. + ### 0.4.0 (2024-01-15) - Change the 'precision' value used to distinguish between two contiguous bands. diff --git a/Cargo.toml b/Cargo.toml index e9906ca..dedd73d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contour-isobands" -version = "0.4.1" +version = "0.4.2" authors = ["Matthieu Viry "] edition = "2021" license = "AGPL-3.0-or-later" diff --git a/README.md b/README.md index 64a6d0e..c62c10c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add the following to your `Cargo.toml`: ```toml [dependencies] -contour-isobands = "0.4.1" +contour-isobands = "0.4.2" ``` Then, you can use the `ContourBuilder` to compute isobands: @@ -68,7 +68,7 @@ It can be serialized to geojson using the `geojson` feature: ```toml [dependencies] -contour-isobands = { version = "0.4.1", features = ["geojson"] } +contour-isobands = { version = "0.4.2", features = ["geojson"] } ``` ```rust @@ -110,7 +110,7 @@ while the interior rings are oriented in the clockwise direction ```toml [dependencies] -contour-isobands = { version = "0.4.1", features = ["parallel"] } +contour-isobands = { version = "0.4.2", features = ["parallel"] } ``` The `parallel` feature enables the use of the `rayon` crate to parallelize the computation of the isobands. diff --git a/src/polygons.rs b/src/polygons.rs index f2ce743..2b6493a 100644 --- a/src/polygons.rs +++ b/src/polygons.rs @@ -234,7 +234,7 @@ pub(crate) fn trace_band_paths( /* check for re-entry */ for s in 0..valid_entries[dir].len() { let ve = &valid_entries[dir][s]; - if cc.edges.get(ve).is_some() { + if cc.edges.contains_key(ve) { /* found re-entry */ ee = cc.edges.get(ve).unwrap(); path.push(entry_coordinate(x, y, dir, &ee.path));