Skip to content

Commit

Permalink
fixed exact_target
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Apr 23, 2024
1 parent 7f44f2b commit e1fa10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/newlk_search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ def _check_exact(self,target):

def _target_to_exact_name(self, target):
"parse Kepler TIC to exact target name"
return f"kplr{target.group(2)}"
return f"kplr{target.group(2).zfill(9)}"
#
def _handle_kbonus(self):
# KBONUS times are masked as they are invalid for the quarter data
Expand Down Expand Up @@ -1766,7 +1766,7 @@ def _check_exact(self,target):

def _target_to_exact_name(self, target):
"parse K2 TIC to exact target name"
return f"ktwo{target.group(2)}"
return f"ktwo{target.group(2).zfill(9)}"

#
def _add_K2_mission_product(self):
Expand Down

0 comments on commit e1fa10b

Please sign in to comment.