You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AutoCalibrate.py script takes as input the path to the Ceria scan and the dark file. When I ran this, the “CeO2_3s_100x100_att000_840mm_71p68keV_000412.edf.ge5.corr.csv” file was generated in the same directory where I ran the .sh script that calls this function, which was different than where I have my data and dark files. I got the error below because the script expects that the user will always execute the script/command to AutoCalibrate.py in the same directory as the DATAFN and DARKFN.
AutoCalibrate.py fails on line 134. This can be fixed if line 1453 in CalibrantOMP.c considers the directory where the script is executed.
Running MIDAS calibration, might take a few minutes. Trial Nr: 1
Path of int:
/scratch/negishi/kstopka/sangid_sep22/ge5/CeO2_3s_100x100_att000_840mm_71p68keV_000412.edf.ge5
Traceback (most recent call last):
File "/home/kstopka/opt/MIDAS/utils/AutoCalibrate.py", line 314, in <module>
rOrig = runMIDAS(rawFN)
^^^^^^^^^^^^^^^
File "/home/kstopka/opt/MIDAS/utils/AutoCalibrate.py", line 134, in runMIDAS
results = np.genfromtxt(fn+'.corr.csv',skip_header=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/apps/spack/negishi/apps/anaconda/2024.02-py311-gcc-8.5.0-lr57z2f/lib/python3.11/site-packages/numpy/lib/npyio.py", line 1980, in genfromtxt
fid = np.lib._datasource.open(fname, 'rt', encoding=encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/apps/spack/negishi/apps/anaconda/2024.02-py311-gcc-8.5.0-lr57z2f/lib/python3.11/site-packages/numpy/lib/_datasource.py", line 193, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/apps/spack/negishi/apps/anaconda/2024.02-py311-gcc-8.5.0-lr57z2f/lib/python3.11/site-packages/numpy/lib/_datasource.py", line 533, in open
raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: /scratch/negishi/kstopka/sangid_sep22/ge5/CeO2_3s_100x100_att000_840mm_71p68keV_000412.edf.ge5.corr.csv not found.
Best regards,
Krzysztof Stopka
The text was updated successfully, but these errors were encountered:
Hi Hemant,
I am logging this bug based on our conservation:
The AutoCalibrate.py script takes as input the path to the Ceria scan and the dark file. When I ran this, the “CeO2_3s_100x100_att000_840mm_71p68keV_000412.edf.ge5.corr.csv” file was generated in the same directory where I ran the .sh script that calls this function, which was different than where I have my data and dark files. I got the error below because the script expects that the user will always execute the script/command to AutoCalibrate.py in the same directory as the DATAFN and DARKFN.
AutoCalibrate.py fails on line 134. This can be fixed if line 1453 in CalibrantOMP.c considers the directory where the script is executed.
Best regards,
Krzysztof Stopka
The text was updated successfully, but these errors were encountered: