     # @el.find('#finished-marking').fadeIn()
     # @el.find('#finished-feedback').fadeIn()
 
+  calcKnownTransits:(data)=>
+    first_event = data.metadata.first_trans_event
+    no_points = data.x.length
+    console.log "data range ", data.x[no_points-1]-data.x[0], " planet peroid ", data.metadata.planet_period, "no points " ,  no_points*1.0
+
+    start = parseInt(first_event.split(":")[0])
+    end   = parseInt(first_event.split(":")[1])
+    period = data.metadata.planet_period
+    startX = data.x[start]
+    endX   = data.x[end]
+    console.log "data ", data.x, start, end
+    console.log "startx ", startX, " end x ", endX
+    dur = endX - startX
+    mid = (endX + startX)/2.0
+
+    in_range = true
+    i= 0
+
+
+    @known_transits = []
+
+    # while in_range
+    #   if (startX + (i*period)) > data.x[no_points-1]
+    #     in_range = false
+    #   else
+    #     @known_transits.push([startX + (i * period) - data.x[0] , endX + (i * period) - data.x[0] ])
+    #     i+=1
+
+
+
   insertMetadata: ->
     # ukirt data
     @ra      = @subject.coords[0]


  onSubjectSelect: (e, subject) =>
    # console.log 'onSubjectSelect(): '
    @subject = subject
    @classification = new Classification {subject}
    @loadSubjectData()


  displayKnownTransits: ->
    return unless @simulationsPresent()
    console.log "on display", @known_transitss
    @hideMarkingButtons()
    @continueButton.show()
    start_time = Subject.current.selected_light_curve.start_time

    for transit in @known_transits
      console.log "hilighting", transit[0] , " to ", transit[1]
      @canvasGraph.highlightCurve(transit[0], transit[1])

    @course.showPrompt()
    @course.prompt_el.find('#course-yes-container').hide()
