Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Sep 17, 2024
1 parent c87c1ef commit 0a68186
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/kbmod/trajectory_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from kbmod.search import Trajectory


logger = logging.getLogger(__name__)


def create_trajectory_generator(config, work_unit=None, **kwargs):
"""Create a TrajectoryGenerator object given a dictionary
of configuration options. The generator class is specified by
Expand Down Expand Up @@ -46,7 +49,6 @@ def create_trajectory_generator(config, work_unit=None, **kwargs):
name = config["name"]
if name not in TrajectoryGenerator.generators:
raise KeyError("Trajectory generator {name} is undefined.")
logger = logging.getLogger(__name__)
logger.info(f"Creating trajectory generator of type {name}")

# Add any keyword arguments to the params, overriding current values.
Expand Down Expand Up @@ -399,7 +401,6 @@ def __init__(
ecliptic_angle = work_unit.compute_ecliptic_angle()
print(f"Using WU = {ecliptic_angle}")
else:
logger = logging.getLogger(__name__)
logger.warning("No ecliptic angle provided. Using 0.0.")
ecliptic_angle = 0.0

Expand Down

0 comments on commit 0a68186

Please sign in to comment.