fit_thread

sans.perspectives.fitting.fit_thread

class sans.perspectives.fitting.fit_thread.FitThread

Bases: data_util.calcthread.CalcThread

Thread performing the fit

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

Internal function to manage the thread.

complete()

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

compute()

Perform a fit

interrupt()

Stop the current work item. To clear the work queue as well call the stop() method.

isquit()
Raises KeyboardInterrupt:
 when the thread is interrupted
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.

sans.perspectives.fitting.fit_thread.map_apply()
sans.perspectives.fitting.fit_thread.map_getattr()

Take an instance of a class and a function name as a string. Execute class.function and return result

Table Of Contents

Previous topic

fitting_widgets

Next topic

ftol_dialog

This Page