Step.seed(:stage_id, :order_number) do |s|
  s.id = 5
  s.name = "Preheat"
  s.temperature = 50
  s.hold_time = 10
  s.order_number = 0
  s.stage_id = 2
  s.collect_data = false
end

Step.seed(:stage_id, :order_number) do |s|
  s.id = 6
  s.name = "Heat"
  s.temperature = 95
  s.hold_time = 10
  s.order_number = 1
  s.stage_id = 2
  s.collect_data = true
end

Step.seed(:stage_id, :order_number) do |s|
  s.id = 7
  s.name = "Cool"
  s.temperature = 50
  s.hold_time = 10
  s.order_number = 2
  s.stage_id = 2
  s.collect_data = false
end

Stage.seed(:protocol_id, :order_number) do |s|
  s.id = 2
  s.num_cycles = 1
  s.protocol_id = 2
  s.stage_type = Stage::TYPE_HOLD
  s.order_number = 0
end

protocol = Protocol.seed(:experiment_definition_id) do |s|
  s.id = 2
  s.lid_temperature = 110
  s.experiment_definition_id = 2
end

ExperimentDefinition.seed(:guid) do |s|
  s.id = 2
  s.guid = "thermal_performance_diagnostic"
  s.experiment_type = ExperimentDefinition::TYPE_DIAGNOSTIC
  s.protocol = protocol.first
end