update grids.py
Merge branch 'master' of github.com:ZhanruiLiang/sys-analysis