Skip to content

freeze if tilt_angles are the wrong size #21

@ercius

Description

@ercius

I accidentally used the wrong size of tilt angles.
tomoengine = TomoGPU(range(0,70), tiltseries)
It should be range(0, 74) in my case.

I get this error:

Running Reconstruction...
  0%|                                                                             | 0/5 [00:00<?, ?it/s]python: ../../../thirdparty/eigen/Eigen/src/Core/CwiseBinaryOp.h:116: Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::CwiseBinaryOp(const Lhs&, const Rhs&, const BinaryOp&) [with BinaryOp = Eigen::internal::scalar_difference_op<float, float>; LhsType = const Eigen::Matrix<float, -1, -1, 1>; RhsType = const Eigen::Matrix<float, -1, -1, 1>; Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Lhs = Eigen::Matrix<float, -1, -1, 1>; Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Rhs = Eigen::Matrix<float, -1, -1, 1>]: Assertion `aLhs.rows() == aRhs.rows() && aLhs.cols() == aRhs.cols()' failed.

and cant exit out.

The shapes of the inputs should be tested or asserted at TomoGPU init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions