Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AHartmaier committed Feb 10, 2024
1 parent d493b32 commit b9946d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kanapy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def generate_grains(self):
igr.append(gblist[1])
if len(ind) > 0:
logging.warning(f'{len(ind)} grains are not represented in polyhedral geometry.')
logging.warning('Consider increasing the number of voxels, as grains appear to be very irregular.')
#logging.warning('Consider increasing the number of voxels, as grains appear to be very irregular.')
"""ind.reverse()
igr.reverse()
for j, i in enumerate(ind):
Expand Down
2 changes: 1 addition & 1 deletion src/kanapy/grains.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def project_pts(pts, ctr, axis):
vol_mae += np.abs(1. - vg / vvox)
if np.abs(vtot_vox - vref) > 1.e-5 and not bool(mesh.prec_vf_voxels):
logging.warning(f'Inconsistent volume of voxelized grains: {vtot_vox}, ' +
f'Reference volume: {vref}')
f'Reference volume: {vref}. Grians missing in polyhedral structure.')
if np.abs(vtot - vref) > 1.e-5 and not bool(mesh.prec_vf_voxels):
logging.warning(f'Inconsistent volume of polyhedral grains: {vtot}, ' +
f'Reference volume: {vref}')
Expand Down

0 comments on commit b9946d8

Please sign in to comment.