Changes between Version 9 and Version 10 of DevNotes/Obsolete/SASNewModel
- Timestamp:
- Oct 29, 2017 10:47:19 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevNotes/Obsolete/SASNewModel
v9 v10 5 5 = Creating New Models in !SasView = 6 6 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.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. 8 8 9 9 Some information on developing models is given below. Other more recently written resources can be found at: … … 108 108 109 109 110 == Incorporating your Model in SasView ==110 == Incorporating your Model in !SasView == 111 111 112 112 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.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. 114 114 115 115 Next, head over to the file … … 117 117 fittingview/src/sans/perspectives/fitting/models.py 118 118 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) add119 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 120 120 121 121 {{{