[annodex-users] Question about get_cmml in pyannodex

Benno benjl at cse.unsw.edu.au
Sun Aug 27 08:23:18 UTC 2006


On Fri Aug 11, 2006 at 17:31:07 +1000, Denis Crowdy wrote:
>
>I'm always encouraging students to ask stupid questions so here's my
>own...
>
>I'm confused about the behaviour of a reader object.  Consider the
>following:
>
>
>#!/usr/bin/env python
>
>import annodex
>
>anx = annodex.Reader("askere.anx")
>
>#anx.get_cmml()
>
>for clip in anx.clips:
>	print clip.desc
>
>
>This returns the descriptions of the three clips as expected.  If I call
>anx.get_cmml() before calling anx.clips, however, I don't get the
>descriptions.  In the interpreter this behaviour is confirmed, in that a
>second call to get_cmml() returns the cmml without the clips.
>
>I guess I expected the reader object to remain unchanged.  Have just
>semi-recovered from a flu-ey thing though, so the fog probably needs
>lifting for me.
>

Tis a bug. I've fixed it 0.7.3.2

Cheers,

Benno



More information about the annodex-users mailing list