def from_utfgrid_string(cls, string): return cls.from_utfgrid(UTFGrid.from_string(string))
def from_utfgrid_file(cls, file): return cls.from_utfgrid(UTFGrid.from_file(file))
def setUp(self): self.utfgrid = UTFGrid.from_file(open('demo.json'))
def setUp(self): self.utfgrid = UTFGrid.from_file(open('europe.json')) self.pnggrid = PNGGrid.from_utfgrid_file(open('europe.json'))