Changes between Version 9 and Version 10 of DevNotes/Obsolete/SASNewModel


Ignore:
Timestamp:
Oct 29, 2017 10:47:19 AM (7 years ago)
Author:
butler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/Obsolete/SASNewModel

    v9 v10  
    55= Creating New Models in !SasView = 
    66 
    7 This document provides an introduction for creating new scattering models in the software SasView (originallyl known as !SansView). For the project homepage visit http://sourceforge.net/projects/sasview. 
     7This document provides an introduction for creating new scattering models in the software !SasView (originallyl known as !SansView). For the project homepage visit http://sourceforge.net/projects/sasview. 
    88 
    99Some information on developing models is given below.  Other more recently written resources can be found at: 
     
    108108 
    109109 
    110 == Incorporating your Model in SasView == 
     110== Incorporating your Model in !SasView == 
    111111 
    112112 
    113 The wrapper for python will create 3 separate chunks of code –''CtestModel.cpp, CtestModel.py and testModel.py''– this being what is actually called from Sansview. Make sure your ''testModel.cpp'' is placed correctly in sansmodels/src/c_models/ and the Sansview installation process will pick it up and do all the wrapping automatically.  
     113The wrapper for python will create 3 separate chunks of code –''!CtestModel.cpp, !CtestModel.py and testModel.py''– this being what is actually called from Sansview. Make sure your ''testModel.cpp'' is placed correctly in sansmodels/src/c_models/ and the Sansview installation process will pick it up and do all the wrapping automatically.  
    114114 
    115115Next, head over to the file 
     
    117117        fittingview/src/sans/perspectives/fitting/models.py 
    118118 
    119 This is where the model is actually added to the selection list for modelling and gui. In the class ModelManagerBase exists a method called _getModelList. In the relevant part of the method (you will easily see where) add 
     119This is where the model is actually added to the selection list for modelling and gui. In the class !ModelManagerBase exists a method called _getModelList. In the relevant part of the method (you will easily see where) add 
    120120 
    121121{{{