V1PlateReader¶
- class wwt_data_formats.plate.V1PlateReader(stream: BinaryIO)[source]¶
Bases:
object
Reader for the “V1” WWT plate file format.
- Parameters:
- streamreadable, seekable, bytes-based file-like object
The underlying data stream. If you explicitly
close()
this object, it will close the underlying stream.
Notes
Unlike most of the other WWT data formats implemented in this package, plate files are stored in a simple binary structure, not XML.
Methods Summary
close
()Close the underlying stream, making this object essentially unusable.
read_tile
(level, x, y)Read the specified tile position into memory in its entirety and return its contents.
Methods Documentation
- read_tile(level: int, x: int, y: int) bytes [source]¶
Read the specified tile position into memory in its entirety and return its contents.
- Parameters:
- levelint
The level of the tile to read
- xint
The X position of the tile to read
- yint
The Y position of the tile to read
- Returns:
- databytes
The data for the specified tile position.