Skip to content

Commit

Permalink
Commit problem light curve catcher
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Aug 1, 2024
1 parent dc880c7 commit a5c5db8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/qusi/internal/light_curve_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,17 @@ def __iter__(self):
injectable_light_curve = injectable_observation_from_path_function(injectable_light_path)
injectee_light_curve_path = next(base_collection_iter)
injectee_light_curve = observation_from_path_function(injectee_light_curve_path)
injected_light_curve = inject_light_curve(
injectee_light_curve, injectable_light_curve
)
# TODO: Here's where the error occurs.
try:
injected_light_curve = inject_light_curve(
injectee_light_curve, injectable_light_curve
)
except ValueError as error:
with Path('problem_light_curves.txt').open('a') as problem_files_list_file:
print(f'#############################', flush=True)
print(f'{injectee_light_curve.path}', file=problem_files_list_file, flush=True)
print(f'{injectable_light_curve.path}', file=problem_files_list_file, flush=True)
continue
transformed_injected_light_curve = (
self.post_injection_transform(injected_light_curve)
)
Expand Down

0 comments on commit a5c5db8

Please sign in to comment.