Skip to content

Commit

Permalink
added folder of image in peak list file
Browse files Browse the repository at this point in the history
  • Loading branch information
BM32ESRF committed Sep 26, 2024
1 parent b786694 commit f0ab8a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LaueTools/IOLaueTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def writefile_cor(prefixfilename, twicetheta, chi, data_x, data_y, dataintensity
+ comments at the end for calibration CCD parameters that have been used for calculating
2theta and chi for each peak (in addition to X,Y pixel position)
:return: outputfilename
:return: str, outputfilename
:param sortedexit: - 1 sort peaks by intensity for the outputfile
- 0 do not sort (e.g. sorting already done in input .dat file . see dataintensity inpu parameter)
Expand Down Expand Up @@ -146,6 +146,7 @@ def writefile_cor(prefixfilename, twicetheta, chi, data_x, data_y, dataintensity

if initialfilename:
outputfile.write("\n# From: %s" % initialfilename)
outputfile.write("\n# Output Folder: %s" % dirname_output)

# metadata on detector position and nature
if verbose:
Expand Down Expand Up @@ -678,6 +679,8 @@ def writefile_Peaklist(outputprefixfilename, Data_array, overwrite=1,
outputfile.write("\n# File created at %s with IOLaueTools.py" % (time.asctime()))
if initialfilename:
outputfile.write("\n# From: %s" % initialfilename)
outputfile.write("\n# Output Folder: %s" % dirname)


outputfile.write("\n# Comments: nb of peaks %d" % nbpeaks)
if comments:
Expand Down

0 comments on commit f0ab8a2

Please sign in to comment.