Project

General

Profile

Actions

Bug #2989

open

basicScript.BasicScript wait time is unhelpful

Added by Alex Noble almost 10 years ago. Updated over 9 years ago.

Status:
In Code Review
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
12/08/2014
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.1.0
Show in known bugs:
No
Workaround:

Description

Scott and I have noticed that basicScript.BasicScript often stops scripts from running because of the built in wait time at line 42:

if loadavg > 2.0:
apDisplay.printMsg("Load average is %.2f, wait for %.1f second " % (round(loadavg,2),loadavg**2))
time.sleep(loadavg**2)
apDisplay.printMsg("Load average is high "+str(round(loadavg,2)))

This condition seems like a relic from the days when processors only had one or two cores. It only serves as an impediment to processing data in our lab.

We're opting to remove it on our end. Who is in favor of removing this from the next release version?

Actions

Also available in: Atom PDF