Skip to content

Commit

Permalink
Merge pull request #234 from sandialabs/dependabot/pip/maturin-1.7.0
Browse files Browse the repository at this point in the history
Bump maturin from 1.6.0 to 1.7.0
  • Loading branch information
mrbuche authored Jul 8, 2024
2 parents db32c53 + 9ba1de6 commit c334c58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin==1.6.0"]
requires = ["maturin==1.7.0"]
build-backend = "maturin"

[project]
Expand All @@ -12,7 +12,7 @@ authors = [
requires-python = ">=3.8,<3.13"
dependencies = [
"cffi==1.16.0",
"maturin==1.6.0",
"maturin==1.7.0",
"numpy"
]
classifiers = [
Expand Down
4 changes: 2 additions & 2 deletions src/constitutive/hyperelastic_damage/buche_silberstein/py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ impl BucheSilberstein
&self.element, &self.factor, &self.grid, &self.normalization, &self.method,
&self.nondimensional_critical_extension, &self.nondimensional_link_stiffness,
&self.number_of_links, &self.swelling_ratio,
&stretch, &maximum_previous_stretch
stretch, &maximum_previous_stretch
)
}).collect::<Vec<[f64; 2]>>();
let results_1 = results.iter().map(|result| result[0]).collect();
let results_2 = results.iter().map(|result| result[1]).collect();
(PyArray::from_vec(py, results_1).to_dyn(), PyArray::from_vec(py, results_2).to_dyn())
}
}
}

0 comments on commit c334c58

Please sign in to comment.