Studying Dirac nodal line with z2pack