added omePeriod to paintGrid, fixed warning in indexer (numpy nan)