model_thread

sans.perspectives.fitting.model_thread

class sans.perspectives.fitting.model_thread.Calc1D

Bases: data_util.calcthread.CalcThread

Compute 1D data

__init__()
__module__ = 'sans.perspectives.fitting.model_thread'
_run()

Internal function to manage the thread.

complete()

Update the GUI with the completed results from a work unit.

compute()

Compute model 1d value given qmin , qmax , x value

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()

Add a work unit to the end of the queue. See the compute() method for details of the arguments to the work unit.

ready()

Ready for another update after delay=t seconds. Call this for threads which can show intermediate results from long calculations.

requeue()

Replace the work unit on the end of the queue. See the compute() method for details of the arguments to the work unit.

reset()

Clear the queue and start a new work unit. See the compute() method for details of the arguments to the work unit.

results()

Send resuts of the computation

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()

Update GUI with the lastest results from the current work unit.

class sans.perspectives.fitting.model_thread.Calc2D

Bases: data_util.calcthread.CalcThread

Compute 2D model This calculation assumes a 2-fold symmetry of the model where points are computed for one half of the detector and I(qx, qy) = I(-qx, -qy) is assumed.

__init__()
__module__ = 'sans.perspectives.fitting.model_thread'
_run()

Internal function to manage the thread.

complete()

Update the GUI with the completed results from a work unit.

compute()

Compute the data given a model function

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()

Add a work unit to the end of the queue. See the compute() method for details of the arguments to the work unit.

ready()

Ready for another update after delay=t seconds. Call this for threads which can show intermediate results from long calculations.

requeue()

Replace the work unit on the end of the queue. See the compute() method for details of the arguments to the work unit.

reset()

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()

Update GUI with the lastest results from the current work unit.

Table Of Contents

Previous topic

models

Next topic

pagestate

This Page