Changeset 9404dd3 in sasmodels for sasmodels/compare_many.py
- Timestamp:
- Dec 4, 2015 10:41:47 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- eaca9eb
- Parents:
- 7bb290c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare_many.py
r4b41184 r9404dd3 53 53 raise 54 54 except: 55 print >>sys.stderr, traceback.format_exc()56 print >>sys.stderr, "when comparing",name,"for seed",seed55 traceback.print_exc() 56 print("when comparing %s for %d"%(name, seed)) 57 57 if hasattr(data, 'qx_data'): 58 58 result = np.NaN*data.data … … 71 71 max_diff = [0] 72 72 for k in range(N): 73 print >>sys.stderr, name, k73 print("%s %d"%(name, k)) 74 74 pars_i, seed = randomize_model(pars) 75 75 constrain_pars(model_definition, pars_i) … … 109 109 else: 110 110 print(("%d,"%seed)+','.join("%g"%v for v in columns)) 111 print '"good","%d/%d","max diff",%g'%(num_good, N, max_diff[0])111 print('"good","%d/%d","max diff",%g'%(num_good, N, max_diff[0])) 112 112 113 113 114 114 def print_usage(): 115 print "usage: compare_many.py MODEL COUNT (1dNQ|2dNQ) (CUTOFF|mono) (single|double|quad)"115 print("usage: compare_many.py MODEL COUNT (1dNQ|2dNQ) (CUTOFF|mono) (single|double|quad)") 116 116 117 117 … … 155 155 model = sys.argv[1] 156 156 if not (model in MODELS) and (model != "all"): 157 print 'Bad model %s. Use "all" or one of:'157 print('Bad model %s. Use "all" or one of:') 158 158 print_models() 159 159 sys.exit(1)
Note: See TracChangeset
for help on using the changeset viewer.