Author: semor Date: Thu Apr 3 17:21:17 2008 New Revision: 5260 URL: http://svn.gna.org/viewcvs/relax?rev=5260&view=rev Log: More removal of the run argument as part of the moving to the new design. Modified: 1.3/prompt/fix.py Modified: 1.3/prompt/fix.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/fix.py?rev=5260&r1=5259&r2=5260&view=diff ============================================================================== --- 1.3/prompt/fix.py (original) +++ 1.3/prompt/fix.py Thu Apr 3 17:21:17 2008 @@ -34,13 +34,11 @@ self.relax = relax - def fix(self, run=None, element=None, fixed=1): + def fix(self, element=None, fixed=1): """Function for either fixing or allowing parameter values to change. Keyword Arguments ~~~~~~~~~~~~~~~~~ - - run: The name of the run. element: Which element to fix. @@ -68,20 +66,15 @@ to vary. - Only parameters corresponding to the given run will be affected. + Only current parameters will be affected. """ # Function intro text. if self.relax.interpreter.intro: text = sys.ps3 + "fix(" - text = text + "run=" + `run` - text = text + ", element=" + `element` + text = text + "element=" + `element` text = text + ", fixed=" + `fixed` + ")" print text - - # The run argument. - if type(run) != str: - raise RelaxStrError, ('run', run) # The element argument. if type(element) != str and type(element) != int: @@ -92,4 +85,4 @@ raise RelaxBinError, ('fixed', fixed) # Execute the functional code. - self.relax.generic.fix.fix(run=run, element=element, fixed=fixed) + fix_obj.fix(element=element, fixed=fixed)