Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#365 closed defect (fixed)

CanSAS reader error

Reported by: ajj Owned by: krzywon
Priority: major Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

Odd behaviour from the canSAS reader. It is raising an error because the unit for Lambda is set as "Wavelength" in ISIS data where "A" is expected.

The odd behaviour is:
1) the error is raised after all the files are loaded when a group of files is loaded. This is expected, though it is reported as though only the last file has the error.
2) 4 errors are raised for each file independent of the number of bad lines.

Change History (3)

comment:1 Changed 10 years ago by ajj

Example console :

Errors occurred while loading /Users/andrewjackson/Dropbox/Research/Deep Eutectic Solvents/ISIS March 2014/LOQ March 2014/Apr14 Reduction/sample1_rear.xml

The data file loaded but with errors.

Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]

Loading Data… /Users/andrewjackson/Dropbox/Research/Deep Eutectic Solvents/ISIS March 2014/LOQ March 2014/Apr14 Reduction/sample1_rear.xml

Loading Data… /Users/andrewjackson/Dropbox/Research/Deep Eutectic Solvents/ISIS March 2014/LOQ March 2014/Apr14 Reduction/sample1_rear.xml

Loading Data… /Users/andrewjackson/Dropbox/Research/Deep Eutectic Solvents/ISIS March 2014/LOQ March 2014/Apr14 Reduction/sample2_rear.xml

Errors occurred while loading /Users/andrewjackson/Dropbox/Research/Deep Eutectic Solvents/ISIS March 2014/LOQ March 2014/Apr14 Reduction/sample2_rear.xml

The data file loaded but with errors.

Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]
Error: CanSAS reader: unexpected "Lambda" unit [Wavelength]; expecting [A]

comment:2 Changed 10 years ago by krzywon

  • Resolution set to fixed
  • Status changed from new to closed

I changed the error message that pops up when errors/warnings occur on loading data to include all errors and data files. I also changed the cansas reader errors from a list to a set to remove any duplicates, so each unique error will be reported once.

comment:3 Changed 9 years ago by butler

  • Milestone changed from SasView Next Release +1 to SasView 3.1.0
Note: See TracTickets for help on using tickets.