;+
;Project    :SolarB EIS
;
;Name       :eis_get_bakeout_periods
;
;Purpose    :populate eis_bakout_period structure by querying timeline
;
;Category   :EIS timeline planning
;
;Written    :Chunkey Lepine, RAL, d.r.lepine@rl.ac.uk, 0044-1235-44-6515
;
;Version    :V0 June 2005
;-
;************************************************************************
function eis_list_bakeout_periods, tlc ;tbeg, tend

stop

ss = eis_get_timeline_entries(tbeg, tend,/BAKEOUT)
if (n_tags(ss) eq 0) then return, 0
n = n_elements(ss)
pp = replicate({eis_bakeout_period}, n)
for i = 0, n-1 do begin
   pp[i].start_time = ss[i].start_time
   pp[i].end_time = ss[i].stop_time
endfor

return, pp

end