JFJochReceiverLite: Fix to ensure non-zero progress during mask data collection
This commit is contained in:
@@ -361,10 +361,9 @@ float JFJochReceiverLite::GetEfficiency() const {
|
||||
}
|
||||
|
||||
float JFJochReceiverLite::GetProgress() const {
|
||||
if (experiment.GetImageNum() == 0)
|
||||
if (experiment.GetFrameNum() == 0)
|
||||
return 0.0;
|
||||
|
||||
return static_cast<float>(max_image_number_received) / static_cast<float>(experiment.GetImageNum());
|
||||
return static_cast<float>(max_image_number_received) / static_cast<float>(experiment.GetFrameNum());
|
||||
}
|
||||
|
||||
void JFJochReceiverLite::SetSpotFindingSettings(const SpotFindingSettings &in_spot_finding_settings) {
|
||||
|
||||
Reference in New Issue
Block a user