xigt / xigt

eXtensible Interlinear Glossed Text
http://depts.washington.edu/uwcl/xigt
MIT License
31 stars 9 forks source link

Check that XC is a Corpus in xigtxml.dump() #31

Closed rgeorgi closed 8 years ago

rgeorgi commented 9 years ago

I confused myself recently by trying to dump an Igt instance with xigtxml.dump() and receiving an exception about the Igt instance not having metadata attribute.

Eventually, I realized this was because I was trying to dump an instance rather than a corpus, but this might be something that would benefit from an explicit type-check.

goodmami commented 9 years ago

Yes, a check would be a good idea. This is an easy fix ; I'll do it for the next version.