Commit 0a88ace0 authored by Ruxandra Cojocaru's avatar Ruxandra Cojocaru

Modified README. Fix in save_plot.

parent 5139dc09
......@@ -11,11 +11,11 @@ sudo python setup.py install
python waveFront.py image1 image2 file.ini
e.g. python waveFront.py ./resources/image1.edf ./resources/image2.edf ./resources/test_wf.ini
e.g. python waveFront.py ./resources/image1.edf ./resources/image2.edf ./resources/test_input.ini
python detectorDistortion.py path_to_files file.ini
e.g. python detectorDistortion.py ./resources/det-dist/ ./resources/test_wf.ini
e.g. python detectorDistortion.py ./resources/det-dist/ ./resources/test_input.ini
## Code manual:
https://www.eucall.eu/sites/sites_custom/site_eucall/content/e21597/e25317/e79563/EUCALL_WP7_PUCCA_Deliverable_7_8_D37_30_09_2018.pdf?preview=preview
......
......@@ -2545,12 +2545,6 @@ def save_plot(data, file_name, dir_out, sub_dir='', xlabel=None,
fig = plt.figure()
if (not (sub_dir[0] == '/')):
sub_dir = '/' + sub_dir
if (not (sub_dir[-1:] == '/')):
sub_dir = sub_dir + '/'
if (plot_type == '3D'):
ax = fig.gca(projection='3d')
......@@ -2595,8 +2589,5 @@ def save_plot(data, file_name, dir_out, sub_dir='', xlabel=None,
if (clabel):
cbar.set_label(clabel)
if not os.path.exists(dir_out + sub_dir):
os.makedirs(dir_out + sub_dir)
plt.savefig(os.path.join(dir_out, sub_dir, file_name + '.png'))
plt.close(fig)
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment