Ticket #10781 (inprogress)

Opened 6 years ago

Last modified 5 years ago

Bug in loading of GSS files

Reported by: Harry Jeffery Owned by: Raquel Alvarez Banos
Priority: major Milestone: Release 3.5
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

When loaded, the attached files have different numbers of bins for each spectrum. Attempting to run these through a binary operation algorithm results in memory corruption, and usually a crash.

pol64 = Load("pol64374.gss")
pol59 = Load("pol59543.gss")

for i in range(0,4):
    print "pol59[%d] contains %d bins" % (i, len(pol59.readY(i)))
    print "pol64[%d] contains %d bins" % (i, len(pol64.readY(i)))

Yields

pol59[0] contains 1021 bins
pol64[0] contains 1021 bins
pol59[1] contains 4646 bins
pol64[1] contains 4646 bins
pol59[2] contains 4570 bins
pol64[2] contains 4564 bins
pol59[3] contains 4439 bins
pol64[3] contains 4428 bins

These should all have the same number of bins per spectrum.

Attachments

pol59543.gss (1.1 MB) - added by Harry Jeffery 6 years ago.
pol64374.gss (975.8 KB) - added by Harry Jeffery 6 years ago.

Change History

Changed 6 years ago by Harry Jeffery

Changed 6 years ago by Harry Jeffery

comment:1 Changed 6 years ago by Raquel Alvarez Banos

  • Owner set to Raquel Alvarez Banos
  • Status changed from new to assigned

comment:2 Changed 6 years ago by Raquel Alvarez Banos

  • Status changed from assigned to inprogress

comment:3 Changed 6 years ago by Raquel Alvarez Banos

Having a look at the files attached, I see that they actually have different number of bins (different number of rows per bank), and this number of bins matches what is printed in the ticket description. The binning (x values) is also different in each spectrum. It seems to me that data is loaded correctly. Can you have a look and let me know if I am misunderstanding the bug.

comment:4 Changed 5 years ago by Nick Draper

  • Milestone changed from Release 3.4 to Release 3.5

Moved to R3.5 at the R3.4 code freeze

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11623

Note: See TracTickets for help on using tickets.