Skip to content

Commit c3d09f6

Browse files
author
Artur Glavic
committed
Setup.py
1 parent 87c4404 commit c3d09f6

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

MANIFEST.in

+7
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ include install
66
include prd
77
include psd
88
include p4d
9+
include plot_reflectometer_data
10+
include plot_4circle_data
11+
include plot_SQUID_data
12+
include dnsplot
13+
include pin12
914
include uninstall
15+
16+
include dnsplot_help.pdf

dnsplot_help.pdf

198 KB
Binary file not shown.

install

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ if [ $INSTALL = /usr/bin ]
1414
sudo ln -s $DIR/psd $INSTALL/psd
1515
sudo ln -s $DIR/p4d $INSTALL/p4d
1616
sudo ln -s $DIR/prd $INSTALL/prd
17+
sudo ln -s $DIR/pin12 $INSTALL/pin12
18+
sudo ln -s $DIR/dnsplot $INSTALL/dnsplot
1719
sudo ln -s $DIR/plot.py $INSTALL/plot.py
1820
else ln -s $DIR/plot_SQUID_data $INSTALL/plot_SQUID_data
1921
ln -s $DIR/plot_4circle_data $INSTALL/plot_4circle_data
2022
ln -s $DIR/plot_reflectometer_data $INSTALL/plot_reflectometer_data
2123
ln -s $DIR/psd $INSTALL/psd
2224
ln -s $DIR/p4d $INSTALL/p4d
2325
ln -s $DIR/prd $INSTALL/prd
26+
ln -s $DIR/pin12 $INSTALL/pin12
27+
ln -s $DIR/dnsplot $INSTALL/dnsplot
2428
ln -s $DIR/plot.py $INSTALL/plot.py
25-
fi
29+
fi

sessions/dns.py

+8
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def change_omega_offset(self, action, window):
484484
'''
485485
if not self.active_file_name in self.file_options:
486486
return None
487+
#+++++ Create a dialog window for ooff input +++++
487488
ooff_dialog=gtk.Dialog(title='Change omega offset:')
488489
ooff_dialog.set_default_size(100,50)
489490
ooff_dialog.add_button('OK', 1)
@@ -521,13 +522,17 @@ def toggle_down(*ignore):
521522
down_button.connect('clicked', toggle_down)
522523
ooff_dialog.vbox.add(table)
523524
ooff_dialog.show_all()
525+
#----- Create a dialog window for ooff input -----
526+
# wait for user response
524527
result=ooff_dialog.run()
525528
while result > 1:
529+
# response is Apply
526530
ooff=float(input_filed.get_text())
527531
self.active_file_data[window.index_mess].change_omega_offset(ooff)
528532
window.replot()
529533
result=ooff_dialog.run()
530534
if result==1:
535+
# response is OK
531536
ooff=float(input_filed.get_text())
532537
self.file_options[self.active_file_name][1]=ooff
533538
self.active_file_data[window.index_mess].change_omega_offset(ooff)
@@ -541,6 +546,7 @@ def change_increment(self, action, window):
541546
'''
542547
if not self.active_file_name in self.file_options:
543548
return None
549+
#+++++ Create a dialog window for increment input +++++
544550
inc_dialog=gtk.Dialog(title='Change increment for same polarization:')
545551
inc_dialog.set_default_size(100,50)
546552
inc_dialog.add_button('OK', 1)
@@ -551,8 +557,10 @@ def change_increment(self, action, window):
551557
input_filed.show()
552558
input_filed.connect('activate', lambda *ignore: inc_dialog.response(1))
553559
inc_dialog.vbox.add(input_filed)
560+
#----- Create a dialog window for increment input -----
554561
result=inc_dialog.run()
555562
if result==1:
563+
# Answer is OK
556564
inc=int(input_filed.get_text())
557565
self.file_options[self.active_file_name][2]=inc
558566
self.create_maps(self.active_file_name)

uninstall

+4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ if [ $INSTALL = /usr/bin ]
1414
sudo rm $INSTALL/psd
1515
sudo rm $INSTALL/p4d
1616
sudo rm $INSTALL/prd
17+
sudo rm $INSTALL/pin12
18+
sudo rm $INSTALL/dnsplot
1719
sudo rm $INSTALL/plot.py
1820
else rm $INSTALL/plot_SQUID_data
1921
ln rm $INSTALL/plot_4circle_data
2022
ln rm $INSTALL/plot_reflectometer_data
2123
ln rm $INSTALL/psd
2224
ln rm $INSTALL/p4d
2325
ln rm $INSTALL/prd
26+
ln rm $INSTALL/pin12
27+
ln rm $INSTALL/dnsplot
2428
ln rm $INSTALL/plot.py
2529
fi

0 commit comments

Comments
 (0)