On Apr 21, 2009, at 2:19 AM, Jean-Francois Moulin wrote:
> Hi!
> thanks for the answers!
>
> Here is the runtime error message:
>
> python read_sweep_C.py
> LstFileReader_FAST('/home/jfmoulin/Lab/Experiments/refsans/
> 07_11_PMB/BPSi-JFM-B1-087.lst')
> Traceback (most recent call last):
> File "read_sweep_C.py", line 278, in <module>
> ui = exple2()
> File "read_sweep_C.py", line 225, in exple2
> tof_resol=.05
> File "delay_line.pyx", line 103, in delay_line_C.UI.__init__
> (delay_line.c:1212)
> self.det_reader = DetectorReader(fname=self.fname,reader=reader,
> File "delay_line.pyx", line 328, in
> delay_line_C.DetectorReader.__init__ (delay_line.c:3445)
> self.list_mode_file = [ListModeFile(fname=fname,reader=reader)
> File "delay_line.pyx", line 719, in
> delay_line_C.ListModeFile.__init__ (delay_line.c:7367)
> self.reader = eval('%s(\'%s\')'%(reader,self.fname))
> File "<string>", line 1, in <module>
> NameError: name 'LstFileReader_FAST' is not defined
>
> So it seems not to be a type error for an object which would have
> a LstFileReader_FAST property or method, right ?
Well, it was a blind guess not having the code :).
> Okay, you asked for it..., here is the full code (yes it is still very
> messy and full of FIXMEs but the python version does run...albeit
> sooooo slow, hence Cython)
Not sure exactly what the bug is here, but it does look more like a
bug. Maybe you could boil this down to a isolated couple of lines
that produces the error?
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev