@@ -108,25 +108,36 @@ def compare_to_by_eye(fitspath: str, dataset: str):
108108
109109 # Detections By Eye
110110 if dataset == 'Voronoi20' :
111- det_4363 = np .where ((ID == 0 ) | (ID == 2 ) | (ID == 3 ) | (ID == 5 ) | (ID == 6 ))[0 ]
111+ det_4363 = \
112+ np .where (
113+ (ID == 0 ) | (ID == 2 ) | (ID == 3 ) | (ID == 5 ) | (ID == 6 ))[0 ]
112114 if dataset == 'Voronoi14' :
113- det_4363 = np .where ((ID == 0 ) | (ID == 7 ) | (ID == 10 ) | (ID == 11 ) | (ID == 12 ))[0 ]
115+ det_4363 = \
116+ np .where (
117+ (ID == 0 ) | (ID == 7 ) | (ID == 10 ) | (ID == 11 ) | (ID == 12 ))[
118+ 0 ]
114119 if dataset == 'Voronoi10' :
115120 det_4363 = np .where ((ID == 1 ) | (ID == 9 ) | (ID == 18 ) | (ID == 21 ))[0 ]
116121 if dataset == 'Grid' :
117- det_4363 = np .where ((ID == 11 ) | (ID == 13 ) | (ID == 19 ) | (ID == 20 ) | (ID == 21 ))[0 ]
122+ det_4363 = np .where (
123+ (ID == 11 ) | (ID == 13 ) | (ID == 19 ) | (ID == 20 ) | (ID == 21 ))[0 ]
118124 if dataset == 'R23_Grid' :
119125 det_4363 = np .where ((ID == 0 ) | (ID == 4 ) | (ID == 5 ) | (ID == 6 ))[0 ]
120126 if dataset == 'O32_Grid' :
121127 det_4363 = np .where ((ID == 6 ))[0 ]
122128 if dataset == 'Double_Bin' :
123- det_4363 = np .where ((ID == 0 ) | (ID == 1 ) | (ID == 2 ) | (ID == 7 ) | (ID == 9 ) |
124- (ID == 10 ) | (ID == 11 ) | (ID == 13 ))[0 ]
129+ det_4363 = \
130+ np .where (
131+ (ID == 0 ) | (ID == 1 ) | (ID == 2 ) | (ID == 7 ) | (ID == 9 ) |
132+ (ID == 10 ) | (ID == 11 ) | (ID == 13 ))[0 ]
125133 if dataset == 'n_Bins' :
126- det_4363 = np .where ((ID == 10 ) | (ID == 11 ) | (ID == 14 ) | (ID == 15 ) | (ID == 20 ) |
127- (ID == 23 ) | (ID == 26 ))[0 ]
128- rlimit = np .where ((ID == 5 ) | (ID == 7 ) | (ID == 8 ) | (ID == 13 ) | (ID == 16 ) |
129- (ID == 17 ) | (ID == 19 ) | (ID == 22 ))[0 ]
134+ det_4363 = np .where (
135+ (ID == 10 ) | (ID == 14 ) | (ID == 15 ) | (ID == 20 ) |
136+ (ID == 23 ) | (ID == 26 ))[0 ]
137+ rlimit = \
138+ np .where (
139+ (ID == 5 ) | (ID == 7 ) | (ID == 8 ) | (ID == 11 ) | (ID == 13 )
140+ | (ID == 16 ) | (ID == 17 ) | (ID == 19 ) | (ID == 22 ))[0 ]
130141
131142 # Caroline: Add you conditions here
132143
@@ -140,16 +151,19 @@ def compare_to_by_eye(fitspath: str, dataset: str):
140151 if check_ID [ii ] == indicate [ii ]:
141152 print (ID [ii ], 'matches with by eye validation' )
142153 else :
143- print ('*****' , ID [ii ], 'does not match calculated values. Please check!' )
154+ print ('*****' , ID [ii ],
155+ 'does not match calculated values. Please check!' )
144156
145157 # This is where I need to add the column for notes
146158 if dataset == 'n_Bins' :
147- notes = ['N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ,
148- 'N/A' , 'N/A' , ' Broad features, but reliable OIII5007 and HGAMMA' ,
159+ notes = ['N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ,
160+ 'Broad features, but reliable OIII5007 and HGAMMA' ,
149161 'Bad fit, but good OIII5007' , 'N/A' ,
150- 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ,
151- 'High Temperature' , 'not fit well, but reliable OIII5007 and HGAMMA' ,
152- 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ]
162+ 'Changed to robust limit 3/22/21' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ,
163+ 'High Temperature' ,
164+ 'not fit well, but reliable OIII5007 and HGAMMA' ,
165+ 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' , 'N/A' ,
166+ 'N/A' ]
153167 note_add = Column (name = 'Notes' , data = notes )
154168 ver_tab .add_column (note_add , 5 )
155169
@@ -160,5 +174,6 @@ def compare_to_by_eye(fitspath: str, dataset: str):
160174 detect_add = Column (name = 'Detection' , data = check_ID )
161175 ver_tab .add_column (detect_add , 2 )
162176
163- asc .write (ver_tab , fitspath + filename_dict ['bin_valid_rev' ], format = 'fixed_width_two_line' )
177+ asc .write (ver_tab , fitspath + filename_dict ['bin_valid_rev' ],
178+ format = 'fixed_width_two_line' )
164179 asc .write (ver_tab , fitspath + 'bin_validation_revised.csv' , format = 'csv' )
0 commit comments