Changeset fd224fd in sasview for DataLoader
- Timestamp:
- Apr 25, 2011 12:20:01 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2e3f9e3
- Parents:
- d09fa370
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/cansas_reader.py
r0d8642c9 rfd224fd 515 515 _y = data_conv_i(_y, units=data_info.y_unit) 516 516 except: 517 msg = "CanSAS reader: could not convert I(q) unit [%s];" 518 msg += " expecting [%s]\n %s" % (attr['unit'], 519 data_info.y_unit, sys.exc_value) 520 raise ValueError, msg 517 if attr['unit'].lower() == 'count': 518 pass 519 else: 520 msg = "CanSAS reader: could not" 521 msg += " convert I(q) unit [%s];" % str(attr['unit']) 522 msg += " expecting [%s]\n" % str(data_info.y_unit) 523 msg += " %s" % str(sys.exc_value) 524 raise ValueError, msg 521 525 else: 522 526 msg = "CanSAS reader: unrecognized I(q) unit [%s];" … … 531 535 _dy = data_conv_i(_dy, units=data_info.y_unit) 532 536 except: 533 msg = "CanSAS reader: could not convert dI(q) unit " 534 msg += "[%s]; expecting [%s]\n %s" % (attr_d['unit'], 535 data_info.y_unit, sys.exc_value) 536 raise ValueError, msg 537 if attr_d['unit'].lower() == 'count': 538 pass 539 else: 540 msg = "CanSAS reader: could not convert dI(q) unit " 541 msg += "[%s]; expecting [%s]\n %s" % (attr_d['unit'], 542 data_info.y_unit, sys.exc_value) 543 raise ValueError, msg 537 544 else: 538 545 msg = "CanSAS reader: unrecognized dI(q) unit [%s]; "
Note: See TracChangeset
for help on using the changeset viewer.