Changeset 0cc77d8 in sasview for src/sas/sascalc/fit


Ignore:
Timestamp:
May 1, 2017 5:00:53 PM (8 years ago)
Author:
GitHub <noreply@…>
Children:
733cdcd
Parents:
b9d74f3 (diff), c00a797a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (05/01/17 17:00:53)
git-committer:
GitHub <noreply@…> (05/01/17 17:00:53)
Message:

Merge branch 'master' into raise

Location:
src/sas/sascalc/fit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/fit/AbstractFitEngine.py

    rb9d74f3 r0cc77d8  
     1from __future__ import print_function 
    12 
    23import  copy 
     
    627628        """ 
    628629        """ 
    629         print str(self) 
     630        print(str(self)) 
  • src/sas/sascalc/fit/Loader.py

    rb9d74f3 r0cc77d8  
     1from __future__ import print_function 
     2 
    13# class Loader  to load any king of file 
    24#import wx 
     
    5456                    self.dx = np.zeros(len(self.x)) 
    5557                except: 
    56                     print "READ ERROR", line 
     58                    print("READ ERROR", line) 
    5759            # Sanity check 
    5860            if not len(self.x) == len(self.dx): 
     
    8082    load = Load() 
    8183    load.set_filename("testdata_line.txt") 
    82     print load.get_filename()  
     84    print(load.get_filename())  
    8385    load.set_values() 
    84     print load.get_values() 
     86    print(load.get_values()) 
    8587     
    8688             
  • src/sas/sascalc/fit/expression.py

    rb9d74f3 r0cc77d8  
    4343Ideally, this interface will change 
    4444""" 
     45from __future__ import print_function 
     46 
    4547import math 
    4648import re 
  • src/sas/sascalc/fit/MultiplicationModel.py

    r7432acb rb9d74f3  
    245245                    return 
    246246 
    247         raise ValueError, "Model does not contain parameter %s" % name 
     247        raise ValueError("Model does not contain parameter %s" % name) 
    248248 
    249249 
  • src/sas/sascalc/fit/pluginmodel.py

    r5213d22 rb9d74f3  
    3535            return self.function(x_val)*self.function(y_val) 
    3636        elif x.__class__.__name__ == 'tuple': 
    37             raise ValueError, "Tuples are not allowed as input to BaseComponent models" 
     37            raise ValueError("Tuples are not allowed as input to BaseComponent models") 
    3838        else: 
    3939            return self.function(x) 
     
    5252            return self.function(x[0])*self.function(x[1]) 
    5353        elif x.__class__.__name__ == 'tuple': 
    54             raise ValueError, "Tuples are not allowed as input to BaseComponent models" 
     54            raise ValueError("Tuples are not allowed as input to BaseComponent models") 
    5555        else: 
    5656            return self.function(x) 
Note: See TracChangeset for help on using the changeset viewer.