XtalOptimizer: Refine rotation axis

This commit is contained in:
2026-01-27 16:29:44 +01:00
parent 788b88b966
commit 479e4e7261
5 changed files with 127 additions and 17 deletions
+14 -5
View File
@@ -31,6 +31,20 @@ GoniometerAxis::GoniometerAxis(const std::string& in_name,
helical_step = in_helical_step;
}
GoniometerAxis &GoniometerAxis::ScreeningWedge(const std::optional<float> &input) {
screening_wedge = input;
return *this;
}
GoniometerAxis &GoniometerAxis::Axis(const Coord &input) {
if (input.Length() == 0.0f)
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
"Rotation axis cannot have 0 length");
axis = input.Normalize();
return *this;
}
std::string GoniometerAxis::GetName() const {
return name;
}
@@ -97,11 +111,6 @@ std::vector<double> GoniometerAxis::GetAngleContainer(int64_t max_image_number)
return angle_container;
}
GoniometerAxis &GoniometerAxis::ScreeningWedge(const std::optional<float> &input) {
screening_wedge = input;
return *this;
}
std::optional<float> GoniometerAxis::GetScreeningWedge() const {
return screening_wedge;
}