pr_thread

sans.perspectives.pr.pr_thread

class sans.perspectives.pr.pr_thread.CalcPr(pr, nfunc=5, error_func=None, completefn=None, updatefn=None, yieldtime=0.01, worktime=0.01)

Bases: data_util.calcthread.CalcThread

Compute P(r)

complete(**kwargs)
Update the GUI with the completed results from a work unit.
compute()
Perform P(r) inversion
interrupt()
Stop the current work item. To clear the work queue as well call the stop() method.
isquit()
Check for interrupts. Should be called frequently to provide user responsiveness. Also yields to other running threads, which is required for good performance on OS X.
isrunning()
queue(*args, **kwargs)
Add a work unit to the end of the queue. See the compute() method for details of the arguments to the work unit.
ready(delay=0.0)
Ready for another update after delay=t seconds. Call this for threads which can show intermediate results from long calculations.
requeue(*args, **kwargs)
Replace the work unit on the end of the queue. See the compute() method for details of the arguments to the work unit.
reset(*args, **kwargs)
Clear the queue and start a new work unit. See the compute() method for details of the arguments to the work unit.
stop()
Clear the queue and stop the thread. New items may be queued after stop. To stop just the current work item, and continue the rest of the queue call the interrupt method
update(**kwargs)
Update GUI with the lastest results from the current work unit.
class sans.perspectives.pr.pr_thread.EstimateNT(pr, nfunc=5, error_func=None, completefn=None, updatefn=None, yieldtime=0.01, worktime=0.01)

Bases: data_util.calcthread.CalcThread

complete(**kwargs)
Update the GUI with the completed results from a work unit.
compute()
Calculates the estimate
interrupt()
Stop the current work item. To clear the work queue as well call the stop() method.
isquit()
isrunning()
queue(*args, **kwargs)
Add a work unit to the end of the queue. See the compute() method for details of the arguments to the work unit.
ready(delay=0.0)
Ready for another update after delay=t seconds. Call this for threads which can show intermediate results from long calculations.
requeue(*args, **kwargs)
Replace the work unit on the end of the queue. See the compute() method for details of the arguments to the work unit.
reset(*args, **kwargs)
Clear the queue and start a new work unit. See the compute() method for details of the arguments to the work unit.
stop()
Clear the queue and stop the thread. New items may be queued after stop. To stop just the current work item, and continue the rest of the queue call the interrupt method
update(**kwargs)
Update GUI with the lastest results from the current work unit.
class sans.perspectives.pr.pr_thread.EstimatePr(pr, nfunc=5, error_func=None, completefn=None, updatefn=None, yieldtime=0.01, worktime=0.01)

Bases: data_util.calcthread.CalcThread

Estimate P(r)

complete(**kwargs)
Update the GUI with the completed results from a work unit.
compute()
Calculates the estimate
interrupt()
Stop the current work item. To clear the work queue as well call the stop() method.
isquit()
Check for interrupts. Should be called frequently to provide user responsiveness. Also yields to other running threads, which is required for good performance on OS X.
isrunning()
queue(*args, **kwargs)
Add a work unit to the end of the queue. See the compute() method for details of the arguments to the work unit.
ready(delay=0.0)
Ready for another update after delay=t seconds. Call this for threads which can show intermediate results from long calculations.
requeue(*args, **kwargs)
Replace the work unit on the end of the queue. See the compute() method for details of the arguments to the work unit.
reset(*args, **kwargs)
Clear the queue and start a new work unit. See the compute() method for details of the arguments to the work unit.
stop()
Clear the queue and stop the thread. New items may be queued after stop. To stop just the current work item, and continue the rest of the queue call the interrupt method
update(**kwargs)
Update GUI with the lastest results from the current work unit.

Table Of Contents

Previous topic

inversion_state

Next topic

pr_widgets

This Page