Skip to content

Commit

Permalink
Merge pull request #210 from autotwin/dependabot/cargo/pyo3-eq-0.23
Browse files Browse the repository at this point in the history
Update pyo3 requirement from =0.22 to =0.23
  • Loading branch information
mrbuche authored Nov 18, 2024
2 parents cc135f6 + dd905ae commit d34cc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ flavio = {version = "=0.4.6", features = ["math"]}
ndarray = {version = "=0.15"}
ndarray-npy = {version = "=0.8"}
netcdf = { version = "=0.10.5", features = ["ndarray", "static"] }
pyo3 = {version = "=0.22", features = ["extension-module"], optional = true}
pyo3 = {version = "=0.23", features = ["extension-module"], optional = true}
tiff = "=0.9.1"
vtkio = "=0.6.3"

Expand Down
4 changes: 2 additions & 2 deletions src/voxel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ fn renumber_nodes(
nodal_coordinates
.iter()
.enumerate()
.filter(|&(_, coordinate)| coordinate != &vec![])
.filter(|&(_, coordinate)| !coordinate.is_empty())
.for_each(|(index, _)| {
if let Some(node) = nodes.next() {
mapping[index] = node;
Expand All @@ -287,7 +287,7 @@ fn renumber_nodes(
.iter_mut()
.for_each(|node| *node = mapping[*node - NODE_NUMBERING_OFFSET])
});
nodal_coordinates.retain(|coordinate| coordinate != &vec![]);
nodal_coordinates.retain(|coordinate| !coordinate.is_empty());
#[cfg(feature = "profile")]
println!(
" \x1b[1;93mRenumbered nodes\x1b[0m {:?}",
Expand Down

0 comments on commit d34cc0e

Please sign in to comment.