reverted to single ReadNAtom error type

This commit is contained in:
daniel
2020-11-12 09:59:59 +01:00
parent 90c4c73887
commit 80b6cafc66
3 changed files with 8 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ impl<T: Trajectory> TrajectoryIterator<T> {
// It's OK to do this every frame because the result is cached by Trajectory
let num_atoms = match &self.trajectory.get_num_atoms() {
&Ok(n) => n,
Err(e) => Err(Error::CheckNAtomsDuringIter(Box::new(e.clone())))?,
Err(e) => Err(Error::CouldNotCheckNAtoms(Box::new(e.clone())))?,
};
// Reuse old frame