[d89f09b] | 1 | Organisation |
---|
| 2 | |
---|
| 3 | fitting module |
---|
| 4 | + |
---|
| 5 | | + - - + sim_page (from fitpanel2 import AUIPanel) |
---|
| 6 | + | |
---|
| 7 | Fit_panel +- - -+ Notebook + |
---|
| 8 | ( from fitpanel2 | |
---|
| 9 | import FitPanel2) | |
---|
| 10 | + -- + page(from fitpanel import Fitpanel) |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | Dictionary page_finder keys= page value= FitProblem(list of data ,theory.name and models ) |
---|
| 14 | |
---|
| 15 | +---------------------------------------------------------------------------+ |
---|
| 16 | +-------+ | +--------+ +------------+ +---------------+ |
---|
| 17 | |page |+----+| data |+-----+|theory name |+-----+|[Models,M_name]| FitProblem | |
---|
| 18 | +-------+ | +--------+ +------------+ +---------------+ |
---|
| 19 | | +---------------------------------------------------------------------------+ |
---|
| 20 | +-------+ +--------+ +------------+ +---------------+ |
---|
| 21 | |page |+----+| data |+-----+|theory name |+-----+|[Models,M_name]| |
---|
| 22 | +-------+ +--------+ +------------+ +---------------+ |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | Dictionary was replace by class |
---|
| 26 | |
---|
| 27 | 1- [Problem] Data loaded from files of 2 columns do not have group_id as field. |
---|
| 28 | thus will always generates a theory unattached to data (2 columns) |
---|
| 29 | |
---|
| 30 | 2- [Problem] not fit able to fit 2 data and one model since unable to select |
---|
| 31 | two data at the same time. |
---|
| 32 | |
---|
| 33 | 3- [Problem ] when fitting two model of same nature how will the user entered the proper expression |
---|
| 34 | Need a txtcrl to specify a new name for a each type model |
---|
| 35 | example lineModel = M1 |
---|
| 36 | lineModel = M2 |
---|
| 37 | [solve] but can be improve? |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | 4- I create a page given an group_id so the 2 columns data need group_id to be add twice |
---|
| 41 | since for them i create a page call fit but if a page called fit is already added it will not |
---|
| 42 | added again if a 2 nd data of 2 columns is selected |
---|
| 43 | [Question] if a page is not created should i post a status event message? |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | 5- [To Do]take care of data range with park |
---|
| 47 | |
---|
| 48 | 6- [Problem]when the user close the fitting panel and load a data and what to do the fit again with the |
---|
| 49 | the panel fit does not show up automatically |
---|
| 50 | [solve] |
---|
| 51 | |
---|
| 52 | 7- [To do ]we need a way to close tab may be a close button for current tab |
---|
| 53 | [solve] close button added |
---|
| 54 | |
---|
| 55 | 8- [Problem ] when selecting all check buttons manually , the main check button does |
---|
| 56 | not changed accordingly |
---|
| 57 | [FIXED] |
---|
| 58 | |
---|
| 59 | 9- [Problem] when the user select a model first and want to perform a fit , we should fine a |
---|
| 60 | way to give the data the same group_id as the model loaded. |
---|
| 61 | [ANSWER] the user will perferm the fit only starting by loading data |
---|
| 62 | [tentative of answer] when selecting a model from the menu is the draw in the separate |
---|
| 63 | window from data. it is only when selecting data that a fit page is added |
---|
| 64 | |
---|
| 65 | 10- [Problem] How to tackle the problem the other way around? when the user select a model |
---|
| 66 | from the menu bar , does a new place has to be create to? which name to give to this page? |
---|
| 67 | since when loading a data a new page is created? |
---|
| 68 | []SAME ANSWER AS 9] |
---|
| 69 | |
---|
| 70 | 11-[TO DO] when enter value in parameter fields redraw model |
---|
| 71 | [DONE] |
---|
| 72 | |
---|
| 73 | 12-[TO DO] comment code and refine |
---|
| 74 | |
---|
| 75 | 13- [UNABLE TO USE] post event on status bar and use calthread |
---|
| 76 | [solve] except calthread |
---|
| 77 | |
---|
| 78 | 14- [TO DO] more error checking |
---|
| 79 | |
---|
| 80 | 15-[suggestion ] keep only one button close and close the current page except simpage |
---|
| 81 | [suggestion accepted]only one close button to close the current page |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | 16-[Question]redraw with evt_kill_focus or evt_text_enter |
---|
| 85 | |
---|
| 86 | 17-[QUESTION] does the model need to be redraw when change fitting data range? |
---|
| 87 | [tentative of answer] _ontextEnter : when xmin and xmax changed redraw model |
---|
| 88 | [fixed] |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | 18-[Problem] when fitting cylinder model with cylinder data some fitting results are swapped |
---|
| 92 | [fixed] sort() method not remove yet |
---|
| 93 | |
---|
| 94 | 19-[problem] when closing a windows model fitted doesn't disappear fron simpage |
---|
| 95 | [fixed] |
---|
| 96 | |
---|
| 97 | 19-[Problem] how to catch not converging fitting? both scipy and park? |
---|
| 98 | exception: raise LinAlgError, 'SVD did not converge' |
---|
| 99 | LinAlgError: SVD did not converge |
---|
| 100 | |
---|
| 101 | 20- fitness class in Models was helping to overwrite a theory plot since always |
---|
| 102 | has the same name: so do I put back fitness class or always name theory with fitness? |
---|
| 103 | |
---|
| 104 | 21- [question] should the data being replot when changing xmin and xmax??? |
---|
| 105 | |
---|
| 106 | 22-[Question ] how to best design sim_page functionalities? |
---|
| 107 | 23- [Question] how to use one object result from scipy? park returning one result |
---|