Skip to content

Commit

Permalink
remove self-explanatory ai comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Nov 26, 2024
1 parent f2574e1 commit 565b059
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dont_fret/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,10 @@ def process_photon_data(
"""search and apply hooks"""
bursts = photon_data.burst_search(burst_colors)

# Apply hooks
for hook_name, hook_params in hooks.items():
# Try to import hook from dont_fret/config/hooks.py
try:
hook = getattr(importlib.import_module("dont_fret.config.hooks"), hook_name)
except AttributeError:
# If not found, try to import from hooks.py in cwd
try:
hook = getattr(importlib.import_module("hooks"), hook_name)
except (ImportError, AttributeError):
Expand Down

0 comments on commit 565b059

Please sign in to comment.