JFJochReceiverLite: Fix to ensure non-zero progress during mask data collection
This commit is contained in:
1 parent
ed569f1c9b
commit
0fe4fd9914
1 file changed
+2
-3
@@ -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