Skip to content

Commit a30fff9

Browse files
committed
docs: updated readme for C++ file and docstrings for surfPointClouds.py functions
1 parent 1e1d824 commit a30fff9

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/fbc/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Software:
2626

2727
The test.cpp file can be compiled with the following command: > nvcc -O3 -o test bcCUDA4D.cu bcCUDA3D.cu bcCUDA2D.cu bcCPU.cpp test.cpp
2828

29-
3029
3. CITATION
30+
3131
If Fast Box-Counting has been useful for your research, please, cite as:
3232
"Fast Computation of Fractal Dimension for 2D, 3D and 4D Data"
3333
Juan Ruiz de Miras, Miguel Ángel Posadas, Antonio José Ibáñez-Molina, María Felipa Soriano and Sergio Iglesias-Parro

src/sphractal/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@
3737
'Sg': defRad, 'Bh': defRad, 'Hs': defRad, 'Mt': defRad, 'Ds': defRad, 'Rg': defRad, 'Cn': defRad, 'Nh': defRad,
3838
'Fl': defRad, 'Mc': defRad, 'Lv': defRad, 'Ts': defRad, 'Og': defRad
3939
}
40-
NN_RAD_MULT = 1.5 # Radius multiplier to identify nearest neighbour

src/sphractal/surfPointClouds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ def pointsToVoxels(pointXYZs, gridSize):
7979

8080
# @annotate('writeSurfVoxelIdxs', color='yellow')
8181
def 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')
8989
def 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')
103103
def 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')
120120
def 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

Comments
 (0)