@@ -781,21 +781,26 def experiment_summary(request, id_exp): | |||
|
781 | 781 | |
|
782 | 782 | if configuration.device.device_type.name == 'rc': |
|
783 | 783 | rc_lines = experiment_data['configurations']['rc']['lines'] |
|
784 | code = rc_lines[3]['code'] | |
|
785 | ||
|
786 | window_data = rc_lines[6]['params'][0] | |
|
787 | h0 = str(window_data['first_height']) | |
|
788 | dh = str(window_data['resolution']) | |
|
789 | nsa = str(window_data['number_of_samples']) | |
|
790 | window = 'Ho='+h0+'km\nDH='+dh+'km\nNSA='+nsa | |
|
791 | ||
|
792 | tx = '' | |
|
793 | if float(rc_lines[1]['delays']) == 0: | |
|
794 | tx = rc_lines[2]['pulse_width'] | |
|
795 | elif float(rc_lines[2]['delays']) == 0: | |
|
796 | tx = rc_lines[1]['pulse_width'] | |
|
784 | if experiment_data['configurations']['rc'] == True: | |
|
785 | tx = '' | |
|
786 | code = '' | |
|
787 | window = '' | |
|
797 | 788 | else: |
|
798 | tx = rc_lines[1]['pulse_width']+' | '+rc_lines[2]['pulse_width'] | |
|
789 | code = rc_lines[3]['code'] | |
|
790 | ||
|
791 | window_data = rc_lines[6]['params'][0] | |
|
792 | h0 = str(window_data['first_height']) | |
|
793 | dh = str(window_data['resolution']) | |
|
794 | nsa = str(window_data['number_of_samples']) | |
|
795 | window = 'Ho='+h0+'km\nDH='+dh+'km\nNSA='+nsa | |
|
796 | ||
|
797 | tx = '' | |
|
798 | if float(rc_lines[1]['delays']) == 0: | |
|
799 | tx = rc_lines[2]['pulse_width'] | |
|
800 | elif float(rc_lines[2]['delays']) == 0: | |
|
801 | tx = rc_lines[1]['pulse_width'] | |
|
802 | else: | |
|
803 | tx = rc_lines[1]['pulse_width']+' | '+rc_lines[2]['pulse_width'] | |
|
799 | 804 | |
|
800 | 805 | kwargs['tx'] = tx |
|
801 | 806 | kwargs['code'] = code |
General Comments 0
You need to be logged in to leave comments.
Login now