Replay.region?

19 views
Skip to first unread message

Eddie Yan

unread,
Feb 2, 2014, 8:39:33 PM2/2/14
to sc2r...@googlegroups.com
Quick question: how is Replay.region accessed? I see it defined as an instance field of the Replay class in resouces.py, but it seems that the type returned by sc2reader.load(filepath) has no attribute 'region'.

Is there some large practical difference between what load returns and the Replay class?

Thanks

Graylin Kim

unread,
Feb 2, 2014, 11:49:42 PM2/2/14
to sc2r...@googlegroups.com
sc2reader.load_replay returns a Replay class. The following code should work just fine when running off of sc2reader's master branch on Github.

replay = sc2reader.load_replay(filepath)
replay.region

Your issue may be that you are running a 0.6.x version which uses replay.gateway instead.

~Graylin


--
You received this message because you are subscribed to the Google Groups "sc2reader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sc2reader+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages