##// END OF EJS Templates
Task #99: coherent_integrations added to models.py...
Fiorella Quino -
r141:514c235f2328
parent child
Show More
@@ -1,2 +1,2
1 [{"fields": {"name": "49_920MHz_clock60MHz_F0MHz_12_25_2", "clock": "60", "mult": 5, "fch": 49.92, "filter_fir": 6, "filter_2": 10, "filter_5": 1, "speed": 0}, "model": "jars.jarsfilter", "pk": 1},
1 [{"fields": {"name": "49_920MHz_clock60MHz_F0MHz_12_25_2", "clock": "60", "mult": 5, "fch": 49.92, "fch_decimal": 721554505, "filter_fir": 6, "filter_2": 10, "filter_5": 1, "speed": 0}, "model": "jars.jarsfilter", "pk": 1},
2 ] No newline at end of file
2 ]
@@ -83,6 +83,7 class JARSConfiguration(Configuration):
83 acq_profiles = models.PositiveIntegerField(verbose_name='Acquired Profiles', validators=[MaxValueValidator(5000)], default=400)
83 acq_profiles = models.PositiveIntegerField(verbose_name='Acquired Profiles', validators=[MaxValueValidator(5000)], default=400)
84 profiles_block = models.PositiveIntegerField(verbose_name='Profiles Per Block', validators=[MaxValueValidator(5000)], default=400)
84 profiles_block = models.PositiveIntegerField(verbose_name='Profiles Per Block', validators=[MaxValueValidator(5000)], default=400)
85 fftpoints = models.PositiveIntegerField(verbose_name='FFT Points',default=16)
85 fftpoints = models.PositiveIntegerField(verbose_name='FFT Points',default=16)
86 cohe_integr = models.PositiveIntegerField(verbose_name='Coherent Integrations',validators=[MinValueValidator(1)], default=30)
86 incohe_integr = models.PositiveIntegerField(verbose_name='Incoherent Integrations',validators=[MinValueValidator(1)], default=30)
87 incohe_integr = models.PositiveIntegerField(verbose_name='Incoherent Integrations',validators=[MinValueValidator(1)], default=30)
87 filter = models.ForeignKey(JARSfilter, on_delete=models.CASCADE, null=True)
88 filter = models.ForeignKey(JARSfilter, on_delete=models.CASCADE, null=True)
88 spectral_number = models.PositiveIntegerField(verbose_name='# Spectral Combinations',validators=[MinValueValidator(1)], default=1)
89 spectral_number = models.PositiveIntegerField(verbose_name='# Spectral Combinations',validators=[MinValueValidator(1)], default=1)
@@ -8,7 +8,7 $("#id_exp_type").change(function() {
8
8
9 function RawDataOrPData(){
9 function RawDataOrPData(){
10 var type = $("#id_exp_type").val();
10 var type = $("#id_exp_type").val();
11 //spectral_number = $("#id_spectral_number")
11 incohe_integr = $("#id_incohe_integr")
12 spectral = $("#id_spectral")
12 spectral = $("#id_spectral")
13 fftpoints = $("#id_fftpoints")
13 fftpoints = $("#id_fftpoints")
14 save_ch_dc = $("#id_save_ch_dc")
14 save_ch_dc = $("#id_save_ch_dc")
@@ -19,7 +19,7 function RawDataOrPData(){
19 all_spec_button = $("#all_spectral_button")
19 all_spec_button = $("#all_spectral_button")
20
20
21 if (type == 0) {
21 if (type == 0) {
22 //$(spectral_number).attr('readonly', true);
22 $(incohe_integr).attr('readonly', true);
23 $(spectral).attr('readonly', true);
23 $(spectral).attr('readonly', true);
24 $(fftpoints).attr('readonly', true);
24 $(fftpoints).attr('readonly', true);
25 $(save_ch_dc).attr('disabled', true);
25 $(save_ch_dc).attr('disabled', true);
@@ -31,7 +31,7 function RawDataOrPData(){
31 $(all_spec_button).attr('disabled', true);
31 $(all_spec_button).attr('disabled', true);
32 }
32 }
33 else {
33 else {
34 //$(spectral_number).attr('readonly', true);
34 $(incohe_integr).attr('readonly', false);
35 $(spectral).attr('readonly', false);
35 $(spectral).attr('readonly', false);
36 $(fftpoints).attr('readonly', false);
36 $(fftpoints).attr('readonly', false);
37 $(save_ch_dc).attr('disabled', false);
37 $(save_ch_dc).attr('disabled', false);
General Comments 0
You need to be logged in to leave comments. Login now