Skip to content

Commit

Permalink
Merge pull request #84 from diegomartinez2/patch-1
Browse files Browse the repository at this point in the history
Update Spectral.py
  • Loading branch information
mesonepigreco authored Dec 18, 2023
2 parents ab7e2b3 + f73491c commit 18e3182
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cellconstructor/Spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,11 +1165,10 @@ def get_full_dynamic_correction_along_path_multiprocessing(dyn,
If 'None' then the number returned by os.cpu_count() is used.
(default: None)
"""
def output_file_sort_function(filename_sp, smear_id_cm, smear_cm, nsm):
def output_file_sort_function(filename_data, smear_id_cm, smear_cm, nsm):
for ism in range(nsm):
name = "{:5.2f}".format(smear_id_cm[ism]).strip()+"_"+"{:6.1f}".format(smear_cm[ism]).strip()
#
filename_data = filename_sp+'_'+name+'.dat'
#name = "{:5.2f}".format(smear_id_cm[ism]).strip()+"_"+"{:6.1f}".format(smear_cm[ism]).strip()
#filename_data = filename_sp+'_'+name+'.dat'
f = open(filename_data, 'r')
head1 = f.readline()
head2 = f.readline()
Expand Down Expand Up @@ -1345,7 +1344,7 @@ def output_file_sort_function(filename_sp, smear_id_cm, smear_cm, nsm):
for ism in range(nsm):
name="{:6.1f}".format(smear_cm[ism]).strip()
filename_new=filename_sp+'_'+name+'.dat'
output_file_sort_function(filename_sp, smear_id_cm, smear_cm, nsm)
output_file_sort_function(filename_new, smear_id_cm, smear_cm, nsm)



Expand Down

0 comments on commit 18e3182

Please sign in to comment.