@@ -79,15 +79,15 @@ def pointsToVoxels(pointXYZs, gridSize):
7979
8080# @annotate('writeSurfVoxelIdxs', color='yellow')
8181def writeSurfVoxelIdxs (writeFileDir , voxelIdxs ):
82- """Generate *. txt file required for 3D box-counting using C++ code written by Ruiz de Miras and Posadas."""
82+ """Generate a txt file required for 3D box-counting using C++ code written by Ruiz de Miras and Posadas."""
8383 with open (f"{ writeFileDir } /surfVoxelIdxs.txt" , 'w' ) as f :
8484 for idx in voxelIdxs :
8585 f .write (f"{ idx } \n " )
8686
8787
8888# @annotate('writePCD', color='yellow')
8989def writePCD (writeFileDir , npName , surfPointXYZs ):
90- """Generate *. pcd file required for 3D box-counting using MATLAB code written by Kazuaki Iida."""
90+ """Generate a pcd file required for 3D box-counting using MATLAB code written by Kazuaki Iida."""
9191 surfPointsDir = f"{ writeFileDir } /surfPoints"
9292 if not isdir (surfPointsDir ):
9393 mkdir (surfPointsDir )
@@ -101,7 +101,7 @@ def writePCD(writeFileDir, npName, surfPointXYZs):
101101
102102# @annotate('writeSurfPoints', color='blue')
103103def writeSurfPoints (writeFileDir , npName , atomsSurfIdxs , atomsXYZ , surfPointXYZs , nonSurfPointXYZs ):
104- """Generate *. xyz file for visualisation of classified point clouds."""
104+ """Generate an xyz file for visualisation of classified point clouds."""
105105 surfPointsDir = f"{ writeFileDir } /surfPoints"
106106 if not isdir (surfPointsDir ):
107107 mkdir (surfPointsDir )
@@ -118,7 +118,7 @@ def writeSurfPoints(writeFileDir, npName, atomsSurfIdxs, atomsXYZ, surfPointXYZs
118118
119119# @annotate('writeSurfVoxels', color='green')
120120def writeSurfVoxels (writeFileDir , npName , surfVoxelXYZs ):
121- """Generate *. xyz file useful for visualisation of computed surface voxels."""
121+ """Generate an xyz file useful for visualisation of computed surface voxels."""
122122 surfVoxelsDir = f"{ writeFileDir } /surfVoxels"
123123 if not isdir (surfVoxelsDir ):
124124 mkdir (surfVoxelsDir )
0 commit comments