Changes in / [ac1670a2:7d64b0e] in sasview
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/default_categories.json
refa5e44 rd26dea0 1 {"Shapes": [["PearlNecklaceModel", true], ["HollowCylinderModel", true], ["CoreMultiShellModel", true], [" LamellarFFHGModel", true], ["FCCrystalModel", true], ["CoreShellEllipsoidXTModel", true], ["FuzzySphereModel", true], ["CSParallelepipedModel", true], ["BCCrystalModel", true], ["EllipticalCylinderModel", true], ["RectangularHollowPrismInfThinWallsModel", true], ["LamellarPCrystalModel", true], ["OnionExpShellModel", true], ["VesicleModel", true], ["MultiShellModel", true], ["RaspBerryModel", true], ["CoreShellEllipsoidModel", true], ["CappedCylinderModel", true], ["CylinderModel", true], ["SphericalSLDModel", true], ["StackedDisksModel", true], ["LamellarPSHGModel", true], ["CoreShellBicelleModel", true], ["RectangularHollowPrismModel", true], ["LamellarPSModel", true], ["EllipsoidModel", true], ["SphereModel", true], ["ParallelepipedModel", true], ["TriaxialEllipsoidModel", true], ["LamellarModel", true], ["RectangularPrismModel", true], ["PringlesModel", true], ["CoreShellCylinderModel", true], ["BinaryHSModel", true], ["FlexibleCylinderModel", true], ["SCCrystalModel", true], ["FlexCylEllipXModel", true], ["LinearPearlsModel", true], ["CoreShellModel", true]], "Structure Factor": [["SquareWellStructure", true], ["HayterMSAStructure", true], ["HardsphereStructure", true], ["StickyHSStructure", true]], "Shape-Independent": [["TwoPowerLawModel", true], ["GelFitModel", true], ["DABModel", true], ["PowerLawAbsModel", true], ["PorodModel", true], ["MassFractalModel", true], ["TeubnerStreyModel", true], ["DebyeModel", true], ["MassSurfaceFractal", true], ["Core2ndMomentModel", true], ["TwoLorentzianModel", true], ["UnifiedPowerRgModel", true], ["PolymerExclVolume", true], ["BEPolyelectrolyte", true], ["GuinierModel", true], ["GuinierPorodModel", true], ["CorrLengthModel", true], ["StarPolymer", true], ["FractalModel", true], ["RPA10Model", true], ["PeakLorentzModel", true], ["BroadPeakModel", true], ["PeakGaussModel", true], ["FractalCoreShellModel", true], ["Poly_GaussCoil", true], ["SurfaceFractalModel", true], ["GaussLorentzGelModel", true], ["LorentzModel", true]], "Uncategorized": [["ReflectivityModel", true], ["ReflectivityIIModel", true], ["LineModel", true], ["MicelleSphCoreModel", true]]}1 {"Shapes": [["PearlNecklaceModel", true], ["HollowCylinderModel", true], ["CoreMultiShellModel", true], ["FCCrystalModel", true], ["CoreShellEllipsoidXTModel", true], ["FuzzySphereModel", true], ["CSParallelepipedModel", true], ["EllipticalCylinderModel", true], ["BCCrystalModel", true], ["LamellarFFHGModel", true], ["RectangularHollowPrismInfThinWallsModel", true], ["LamellarPCrystalModel", true], ["OnionExpShellModel", true], ["VesicleModel", true], ["MultiShellModel", true], ["RaspBerryModel", true], ["CoreShellEllipsoidModel", true], ["CappedCylinderModel", true], ["CylinderModel", true], ["SphericalSLDModel", true], ["StackedDisksModel", true], ["LamellarPSHGModel", true], ["CoreShellBicelleModel", true], ["RectangularHollowPrismModel", true], ["LamellarPSModel", true], ["EllipsoidModel", true], ["SphereModel", true], ["ParallelepipedModel", true], ["TriaxialEllipsoidModel", true], ["LamellarModel", true], ["PringlesModel", true], ["RectangularPrismModel", true], ["CoreShellCylinderModel", true], ["BinaryHSModel", true], ["FlexibleCylinderModel", true], ["SCCrystalModel", true], ["FlexCylEllipXModel", true], ["LinearPearlsModel", true], ["CoreShellModel", true]], "Structure Factor": [["SquareWellStructure", true], ["HayterMSAStructure", true], ["HardsphereStructure", true], ["StickyHSStructure", true]], "Shape-Independent": [["TwoPowerLawModel", true], ["GelFitModel", true], ["DABModel", true], ["PowerLawAbsModel", true], ["PorodModel", true], ["MassFractalModel", true], ["RPA10Model", true], ["TeubnerStreyModel", true], ["DebyeModel", true], ["MassSurfaceFractal", true], ["Core2ndMomentModel", true], ["TwoLorentzianModel", true], ["UnifiedPowerRgModel", true], ["PolymerExclVolume", true], ["BEPolyelectrolyte", true], ["GuinierModel", true], ["GuinierPorodModel", true], ["CorrLengthModel", true], ["StarPolymer", true], ["FractalModel", true], ["PeakLorentzModel", true], ["BroadPeakModel", true], ["PeakGaussModel", true], ["FractalCoreShellModel", true], ["Poly_GaussCoil", true], ["SurfaceFractalModel", true], ["GaussLorentzGelModel", true], ["LorentzModel", true]], "Uncategorized": [["ReflectivityModel", true], ["ReflectivityIIModel", true], ["LineModel", true], ["MicelleSphCoreModel", true]]} -
sasview/local_config.py
rcaf3baa6 r4bf54044 34 34 '''If you found this software useful to your work please remember to acknowledge 35 35 its use in your publications as suggested below and reference the SasView website: 36 http://www.sasview.org/ index.html. Please also consider letting us know by sending us the36 http://www.sasview.org/. Please also consider letting us know by sending us the 37 37 reference to your work. This will help us to ensure the long term support and 38 38 development of the software. 39 39 ''' 40 40 _acknowledgement_publications = \ 41 '''This work originally developed as part of the DANSE project funded by the NSF42 under grant DMR-0520547,and currently maintained by NIST, UMD, ORNL, ISIS, ESS41 '''This work benefited from software developed by the DANSE project under NSF 42 award DMR-0520547 and currently maintained by NIST, UMD, ORNL, ISIS, ESS 43 43 and ILL. 44 44 ''' -
src/sas/dataloader/readers/cansas_reader.py
r9dedf40 rd26dea0 105 105 base_ns = "{cansas1d/1.0}" 106 106 107 logging = []108 errors = []107 logging = None 108 errors = None 109 109 110 110 type_name = "canSAS" … … 120 120 def __init__(self): 121 121 ## List of errors 122 self.errors = [] 122 self.errors = set() 123 self.logging = [] 123 124 self.encoding = None 124 125 … … 252 253 for error in self.errors: 253 254 data1d.errors.append(error) 254 del self.errors[:]255 self.errors.clear() 255 256 numpy.trim_zeros(data1d.x) 256 257 numpy.trim_zeros(data1d.y) … … 301 302 attr = node.attrib 302 303 value_unit = '' 304 err_msg = None 303 305 if 'unit' in attr and new_current_level.get('unit') is not None: 304 306 try: … … 322 324 value_unit = local_unit 323 325 err_msg = "Unit converter is not available.\n" 324 self.errors.append(err_msg)325 326 else: 326 327 value_unit = local_unit … … 333 334 ".format(data1d.{0})" 334 335 exec intermediate.format(unitname, "{0}", "{1}") 335 self.errors.append(err_msg)336 336 value_unit = local_unit 337 337 except: … … 340 340 err_msg += "\"{0}\" unit [{1}]" 341 341 err_msg = err_msg.format(tagname, local_unit) 342 self.errors.append(err_msg)343 342 value_unit = local_unit 344 343 elif 'unit' in attr: 345 344 value_unit = attr['unit'] 345 if err_msg: 346 self.errors.add(err_msg) 346 347 node_value = "float({0})".format(node_value) 347 348 return node_value, value_unit … … 355 356 """ 356 357 if data1d == None: 357 self.errors = []358 self.errors = set() 358 359 x_vals = numpy.empty(0) 359 360 y_vals = numpy.empty(0) … … 697 698 node.append(point) 698 699 self.write_node(point, "Q", datainfo.x[i], 699 {'unit': datainfo. x_unit})700 {'unit': datainfo._xunit}) 700 701 if len(datainfo.y) >= i: 701 702 self.write_node(point, "I", datainfo.y[i], 702 {'unit': datainfo. y_unit})703 {'unit': datainfo._yunit}) 703 704 if datainfo.dy != None and len(datainfo.dy) > i: 704 705 self.write_node(point, "Idev", datainfo.dy[i], 705 {'unit': datainfo. y_unit})706 {'unit': datainfo._yunit}) 706 707 if datainfo.dx != None and len(datainfo.dx) > i: 707 708 self.write_node(point, "Qdev", datainfo.dx[i], 708 {'unit': datainfo. x_unit})709 {'unit': datainfo._xunit}) 709 710 if datainfo.dxw != None and len(datainfo.dxw) > i: 710 711 self.write_node(point, "dQw", datainfo.dxw[i], 711 {'unit': datainfo. x_unit})712 {'unit': datainfo._xunit}) 712 713 if datainfo.dxl != None and len(datainfo.dxl) > i: 713 714 self.write_node(point, "dQl", datainfo.dxl[i], 714 {'unit': datainfo. x_unit})715 {'unit': datainfo._xunit}) 715 716 716 717 def _write_trans_spectrum(self, datainfo, entry_node): … … 1169 1170 err_mess += " %s unit [%s]; expecting [%s]\n %s" \ 1170 1171 % (variable, units, local_unit, exc_value) 1171 self.errors.a ppend(err_mess)1172 self.errors.add(err_mess) 1172 1173 if optional: 1173 1174 logging.info(err_mess) … … 1178 1179 % (variable, units) 1179 1180 err_mess += " expecting [%s]" % local_unit 1180 self.errors.a ppend(err_mess)1181 self.errors.add(err_mess) 1181 1182 if optional: 1182 1183 logging.info(err_mess) -
src/sas/guiframe/config.py
rf53cd30 r4bf54044 31 31 '''If you found this software useful to your work please remember to acknowledge 32 32 its use in your publications as suggested below and reference the SasView website: 33 http://www.sasview.org/ index.html. Please also consider letting us know by sending us the33 http://www.sasview.org/. Please also consider letting us know by sending us the 34 34 reference to your work. This will help us to ensure the long term support and 35 35 development of the software. 36 36 ''' 37 37 _acknowledgement_publications = \ 38 '''This work originally developed as part of the DANSE project funded by the NSF39 under grant DMR-0520547,and currently maintained by NIST, UMD, ORNL, ISIS, ESS38 '''This work benefited from software developed by the DANSE project under NSF 39 award DMR-0520547 and currently maintained by NIST, UMD, ORNL, ISIS, ESS 40 40 and ILL. 41 41 ''' -
src/sas/guiframe/local_perspectives/data_loader/data_loader.py
rb9dbd6b rd26dea0 204 204 except: 205 205 any_error = True 206 if any_error or error_message != "": 207 if error_message == "": 208 error = "Error: " + str(sys.exc_value) + "\n" 209 error += "while loading Data: \n%s\n" % str(p_file) 210 error_message = "The data file you selected could not be loaded.\n" 211 error_message += "Make sure the content of your file" 212 error_message += " is properly formatted.\n\n" 213 error_message += "When contacting the SasView team, mention the" 214 error_message += " following:\n%s" % str(error) 215 elif data_error: 216 base_message = "Errors occurred while loading {0}\n".format(p_file) 217 base_message += "The data file loaded but with errors.\n" 218 error_message = base_message + error_message 219 else: 220 error_message += "%s\n" % str(p_file) 221 info = "error" 206 if any_error or error_message != "": 207 if error_message == "": 208 error = "Error: " + str(sys.exc_info()[1]) + "\n" 209 error += "while loading Data: \n%s\n" % str(basename) 210 error_message += "The data file you selected could not be loaded.\n" 211 error_message += "Make sure the content of your file" 212 error_message += " is properly formatted.\n\n" 213 error_message += "When contacting the SasView team, mention the" 214 error_message += " following:\n%s" % str(error) 215 elif data_error: 216 base_message = "Errors occurred while loading " 217 base_message += "{0}\n".format(basename) 218 base_message += "The data file loaded but with errors.\n" 219 error_message = base_message + error_message 220 else: 221 error_message += "%s\n" % str(p_file) 222 info = "error" 223 224 if any_error or error_message: 222 225 self.load_update(output=output, message=error_message, info=info) 223 224 226 else: 225 227 message = "Loading Data Complete! " 226 228 message += log_msg 227 229 self.load_complete(output=output, error_message=error_message, 228 message=message, path=path, info= info)230 message=message, path=path, info='warning') 229 231 230 232 def load_update(self, output=None, message="", info="warning"): … … 233 235 """ 234 236 if message != "": 235 wx.PostEvent(self.parent, StatusEvent(status=message, info= 'info',237 wx.PostEvent(self.parent, StatusEvent(status=message, info=info, 236 238 type="progress")) 237 239 def load_complete(self, output, message="", error_message="", path=None,
Note: See TracChangeset
for help on using the changeset viewer.