models

sans.perspectives.fitting.models

class sans.perspectives.fitting.models.ModelList

Bases: object

Contains dictionary of model and their type

get_list()

return all the list stored in a dictionary object

set_list(name, mylist)
Parameters:
  • name – the type of the list
  • mylist – the list to add
class sans.perspectives.fitting.models.ModelManager

Bases: object

implement model

findModels()
get_model_list()
is_changed()
populate_menu(modelmenu, event_owner)
update()
class sans.perspectives.fitting.models.ModelManagerBase
findModels()

find plugin model in directory of plugin .recompile all file in the directory if file were modified

get_model_list()

return dictionary of models for fitpanel use

is_changed()
check the last time the plugin dir has changed and return true
is the directory was modified else return false
populate_menu(modelmenu, event_owner)

Populate a menu with our models

Parameters:
  • id – first menu event ID to use when binding the menu events
  • modelmenu – wx.Menu object to populate
  • event_owner – wx object to bind the menu events to
Returns:

the next free event ID following the new menu events

update()

return a dictionary of model if new models were added else return empty dictionary

sans.perspectives.fitting.models.log(message)

Table Of Contents

Previous topic

model_thread

Next topic

pagestate

This Page