Skip to content

Commit

Permalink
Removed log statement reference telescope
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 8, 2019
1 parent beb36ad commit f7c0b21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion imqueue/schedulers/basic_general_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def schedule(observations: List[Dict], session: Dict, program: Dict) -> (Dict, i
# iterate over all the observations
for i, observation in enumerate(observations):
if not observation.get('RA') or not observation.get('Dec'):
telescope.log.debug("Observation {i}")
#telescope.log.debug("Observation {i}")
# if the target name is a RA/Dec string
# if re.search(r'\d{1,2}:\d{2}:\d{1,2}.\d{1,2}\s[+-]\d{1,2}:\d{2}:\d{1,2}.\d{1,2}',observation.get('target')) or re.search(r'\d{1,2}:\d{2}:\d{1,2}\s[+-]\d{1,2}:\d{2}:\d{1,2}',observation.get('target')):
# if (re.search(r'\d{1,2}:\d{2}:\d{1,2}.\d{1,2}\s[+-]\d{1,2}:\d{2}:\d{1,2}.\d{1,2}',observation.get('target'))) or (re.search(r'\d{1,2}:\d{2}:\d{1,2}\s[+-]\d{1,2}:\d{2}:\d{1,2}',observation.get('target'))):
Expand Down
11 changes: 6 additions & 5 deletions imqueue/schedulers/log_scheduler.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
2019-04-19 12:12:57.584365
2019-04-19 12:12:58.696838
[datetime.datetime(2019, 4, 19, 12, 28, 10, 162544)
datetime.datetime(2019, 4, 19, 12, 28, 10, 162544)
datetime.datetime(2019, 4, 19, 12, 12, 57, 544292)]
2019-10-07 11:59:17.071968
2019-10-07 11:59:22.064803
[datetime.datetime(2019, 10, 7, 13, 2, 26, 822255)
datetime.datetime(2019, 10, 7, 13, 13, 51, 555950)
datetime.datetime(2019, 10, 7, 13, 13, 51, 555950)
datetime.datetime(2019, 10, 7, 12, 54, 0, 292124)]

0 comments on commit f7c0b21

Please sign in to comment.