def on_enter(event_data):
    """ """
    pocs = event_data.model

    pocs.say("Analyzing image...")

    try:
        observation = pocs.observatory.current_observation

        image_info = pocs.observatory.analyze_recent()

        pocs.logger.debug("Image information: {}".format(image_info))

        pocs.logger.debug("Observation exposure: {} / {}".format(observation.current_exp, observation.min_nexp))
        if (observation.current_exp - observation.min_nexp) % observation.exp_set_size == 0:
            pocs.next_state = 'scheduling'
        else:
            pocs.next_state = 'tracking'
    except Exception as e:
        pocs.logger.error("Problem in analyzing: {}".format(e))
        pocs.next_state = 'parking'

@@ -405,16 +405,17 @@
 _nexp))%0A
+%0A
         
@@ -417,17 +417,16 @@
      if 
-(
 observat
@@ -445,9 +445,10 @@
 exp 
--
+%3E=
  obs
@@ -464,17 +464,56 @@
 min_nexp
-)
+:%0A            if observation.current_exp
  %25 obser
@@ -538,16 +538,20 @@
 e == 0:%0A
+    
         

Fix the scheduling / tracking check