Skip to content

Commit

Permalink
added verbosed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
BM32ESRF committed Feb 19, 2024
1 parent a303403 commit ea8614b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LaueTools/IOLaueTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ def writefile_Peaklist(outputprefixfilename, Data_array, overwrite=1,
0 to write a file with '_new' added in the name
"""
if Data_array is None:
print("No data peak to write")
if verbose:
print("No data peak to write")
return
# just one row!
elif len(Data_array.shape) == 1:
Expand Down Expand Up @@ -629,7 +630,8 @@ def writefile_Peaklist(outputprefixfilename, Data_array, overwrite=1,
"peak_inclination Xdev Ydev peak_bkg Ipixmax\n")

if nbpeaks == 1:
print("nbcolumns", nbcolumns)
if verbose:
print("nbcolumns", nbcolumns)

outputfile.write(
"\n%.02f %.02f %.02f %.02f %.02f %.02f %.03f %.02f %.02f %.02f %d"
Expand Down

0 comments on commit ea8614b

Please sign in to comment.