Ticket #10781 (inprogress)
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
Change History
comment:1 Changed 6 years ago by Raquel Alvarez Banos
- Owner set to Raquel Alvarez Banos
- Status changed from new to assigned
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.