Skip to content

Can't read sif file: list index out of range #2

Description

@GoogleCodeExporter
I tried reading my 1000frame sif files into an ipython notebook (running in 
ipython notebook through X11 on an ubuntu 10.4 server with anaconda installed) 
and am getting a list index out of a range error.  I just took the code from 
example.py and replaced it with the name of my sif file. Code and errors are 
below. 


from pysifreader import *
from pylab import *

# Read the SIF file
[data, back, ref] = sifread('25pM_29bpdsDNA_cy3cy5_1.sif')
pixels = data.imageData[:,:,0] - back.imageData[:,:,0]

# Print some information about the main (data) image
data.printInfo()

# Display the image
matshow(pixels)
show()

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-8-977567ad5c55> in <module>()
      5 
      6 # Read the SIF file
----> 7 [data, back, ref] = sifread('25pM_29bpdsDNA_cy3cy5_1.sif')
      8 pixels = data.imageData[:,:,0] - back.imageData[:,:,0]
      9 

/home/aparente/Programs/anaconda/bin/pysifreader.pyc in sifread(file)
    248                 error('Not an Andor SIF image file.')
    249         skipLine()
--> 250         [data,next] = readSection()
    251         data.seqNum = 1
    252         if (next == 1):

/home/aparente/Programs/anaconda/bin/pysifreader.pyc in readSection()
    216                 o += skipandread().split()
    217                 o = toint(o)
--> 218                 image.imageArea = [[o[1], o[4], o[6]], [o[3], o[2], 
o[5]]]
    219                 image.frameArea=[[o[10], o[13]], [o[12], o[11]]]
    220                 image.frameBins=[o[15], o[14]]

IndexError: list index out of range



Original issue reported on code.google.com by angelica...@gmail.com on 1 Oct 2014 at 1:32

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions