Skip to content

Commit

Permalink
resolve fastsim-2 merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Carow authored and Kyle Carow committed Oct 18, 2023
2 parents fd113fa + 0559171 commit b25e09d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/fastsim-core/src/imports.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub(crate) use anyhow;
pub(crate) use anyhow::{self, Context};
pub(crate) use bincode;
pub(crate) use log;
pub(crate) use ndarray::{array, concatenate, s, Array, Array1, Axis};
Expand Down
4 changes: 2 additions & 2 deletions rust/fastsim-core/src/simdrive/simdrive_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ impl SimDriveVec {
if parallelize {
self.0.par_iter_mut().enumerate().try_for_each(|(i, sd)| {
sd.sim_drive(None, None)
.map_err(|err| err.context(format!("simdrive idx:{}", i)))
.with_context(|| format!("simdrive idx: {}", i))
})?;
} else {
self.0.iter_mut().enumerate().try_for_each(|(i, sd)| {
sd.sim_drive(None, None)
.map_err(|err| err.context(format!("simdrive idx:{}", i)))
.with_context(|| format!("simdrive idx: {}", i))
})?;
}
Ok(())
Expand Down

0 comments on commit b25e09d

Please sign in to comment.