Changeset 4822 for trunk/GSASIIdataGUI.py
- Timestamp:
- Feb 20, 2021 9:43:32 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4819 r4822 5117 5117 if key not in Controls: Controls[key] = {} 5118 5118 wx.EndBusyCursor() 5119 # check for limits on dependent vars 5120 consVars = [i for i in reqVaryList if i not in varyList] 5121 impossible = set( 5122 [str(i) for i in Controls['parmMinDict'] if i in consVars] + 5123 [str(i) for i in Controls['parmMaxDict'] if i in consVars]) 5124 if impossible: 5125 msg = '' 5126 for i in sorted(impossible): 5127 if msg: msg += ', ' 5128 msg += i 5129 msg = ' &'.join(msg.rsplit(',',1)) 5130 msg = ('Note: limits on variable(s) '+msg+ 5131 ' will be ignored because they are constrained.') 5132 G2G.G2MessageBox(self,msg,'Limits ignored for constrained vars') 5119 5133 # debug stuff 5120 5134 #if GSASIIpath.GetConfigValue('debug'): … … 5122 5136 # import imp 5123 5137 # imp.reload(G2G) 5124 # end debug stuff 5138 # end debug stuff 5125 5139 dlg = G2G.ShowLSParms(self,'Least Squares Parameters',parmValDict, 5126 5140 varyList,reqVaryList,Controls) 5141 dlg.CenterOnParent() 5127 5142 dlg.ShowModal() 5128 5143 dlg.Destroy()
Note: See TracChangeset
for help on using the changeset viewer.