ScalingSettings: file format and intensity settings
This commit is contained in:
@@ -118,3 +118,23 @@ ScalingSettings &ScalingSettings::MinCCForImage(double input) {
|
||||
double ScalingSettings::GetMinPartiality() const {
|
||||
return min_partiality;
|
||||
}
|
||||
|
||||
ScalingSettings &ScalingSettings::FileFormat(IntensityFormat input) {
|
||||
intensity_format = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
IntensityFormat ScalingSettings::GetFileFormat() const {
|
||||
return intensity_format;
|
||||
}
|
||||
|
||||
ScalingSettings &ScalingSettings::RfreeFraction(double input) {
|
||||
if (input < 0.0 || input > 1.0)
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid, "R-free fraction must be between 0 and 1");
|
||||
rfree_fraction = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
double ScalingSettings::GetRfreeFraction() const {
|
||||
return rfree_fraction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user