Open yucongalicechen opened 5 hours ago
Functions do not handle invalid cases (when tth > 180 or arcsin value > 1).
Raise valueerror for those cases. Refer to #154 for more details.
I am guessing this won't be a ValueError. We can have it crash the way it does now (invalid arcsin) but we want to overload the error message to help the user know how to fix it.
Problem
Functions do not handle invalid cases (when tth > 180 or arcsin value > 1).
Proposed solution
Raise valueerror for those cases. Refer to #154 for more details.