XtalOptimizer: Work in progress to find out what is wrong with rotation axis
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m23s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 13m37s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m41s
Build Packages / Generate python client (push) Successful in 18s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m7s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 14m4s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 14m6s
Build Packages / Build documentation (push) Successful in 43s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m24s
Build Packages / build:rpm (rocky9) (push) Successful in 14m37s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m25s
Build Packages / Unit tests (push) Successful in 53m30s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m23s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 13m37s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m41s
Build Packages / Generate python client (push) Successful in 18s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m7s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 14m4s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 14m6s
Build Packages / Build documentation (push) Successful in 43s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m24s
Build Packages / build:rpm (rocky9) (push) Successful in 14m37s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m25s
Build Packages / Unit tests (push) Successful in 53m30s
This commit is contained in:
@@ -37,10 +37,11 @@ GoniometerAxis &GoniometerAxis::ScreeningWedge(const std::optional<float> &input
|
||||
}
|
||||
|
||||
GoniometerAxis &GoniometerAxis::Axis(const Coord &input) {
|
||||
if (input.Length() == 0.0f)
|
||||
float len = input.Length();
|
||||
if (len == 0.0f)
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Rotation axis cannot have 0 length");
|
||||
|
||||
// increment *= len;
|
||||
axis = input.Normalize();
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user