File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,15 @@ def __iter__(self):
121
121
# TODO: Preprocessing step should be here. Or maybe that should all be on the light curve collection
122
122
# as well? Or passed in somewhere else?
123
123
standard_light_curve = next (base_collection_iter )
124
- transformed_standard_light_curve = self .post_injection_transform (
125
- standard_light_curve
126
- )
124
+ try :
125
+ transformed_standard_light_curve = self .post_injection_transform (
126
+ standard_light_curve
127
+ )
128
+ except ValueError as error :
129
+ with Path ('problem_light_curves.txt' ).open ('a' ) as problem_files_list_file :
130
+ print (f'#############################' , flush = True )
131
+ print (f'{ standard_light_curve .path } ' , file = problem_files_list_file , flush = True )
132
+ continue
127
133
yield transformed_standard_light_curve
128
134
if collection_type in [
129
135
LightCurveCollectionType .INJECTEE ,
You can’t perform that action at this time.
0 commit comments