old_contents: import logging
  import importlib
  
  import pandas as pd
  from volttron.platform.agent import utils
  from datetime import timedelta as td
  from volttron.pnnl.models.utils import clamp
  
  _log = logging.getLogger(__name__)
  utils.setup_logging()
  
  
  class Light(object):
      DOL = "dol"
      OCC = "occ"
  
      def __init__(self, config, **kwargs):
          model_type = config.get("model_type", "simple")
          _log.debug("Light Agent Model: {}".format(model_type))
          module = importlib.import_module("volttron.pnnl.models.light")
          model_class = getattr(module, model_type)
          self.model = model_class(config, self)
  
      def get_q(self, _set, sched_index, market_index, occupied):
          q = self.model.predict(_set, sched_index, market_index, occupied)
          return q
  
  
  class simple(object):
      def __init__(self, config, parent, **kwargs):
          self.parent = parent
          self.inputs = parent.inputs
          if "rated_power" in config: 
             self.rated_power = config["rated_power"]
          else:
             self.rated_power = config["model_parameters"]["rated_power"]
  
      def update_data(self):
          pass
  
      def predict(self, _set, sched_index, market_index, occupied):
          return _set*self.rated_power
  
new_contents: import logging
  import importlib
  
  import pandas as pd
  from volttron.platform.agent import utils
  from datetime import timedelta as td
  from volttron.pnnl.models.utils import clamp
  
  _log = logging.getLogger(__name__)
  utils.setup_logging()
  
  
  class Light(object):
      DOL = "dol"
      OCC = "occ"
  
      def __init__(self, config, **kwargs):
          model_type = config.get("model_type", "simple")
          _log.debug("Light Agent Model: {}".format(model_type))
          module = importlib.import_module("volttron.pnnl.models.light")
          model_class = getattr(module, model_type)
          self.model = model_class(config, self)
  
      def get_q(self, _set, sched_index, market_index, occupied):
          q = self.model.predict(_set, sched_index, market_index, occupied)
          return q
  
  
  class simple(object):
      def __init__(self, config, parent, **kwargs):
          self.parent = parent
          self.inputs = parent.inputs
          self.rated_power = config["rated_power"]
  
      def update_data(self):
          pass
  
      def predict(self, _set, sched_index, market_index, occupied):
          return _set*self.rated_power
  
  
  class simple_profile(object):
      def __init__(self, config, parent, **kwargs):
          self.parent = parent
          self.inputs = parent.inputs
          self.rated_power = config["rated_power"]
          try:
              self.lighting_schedule = config["default_lighting_schedule"]
          except KeyError:
              _log.warn("No no default lighting schedule!")
              self.lighting_schedule = [1.0]*24
  
      def update_data(self):
          pass
  
      def predict(self, _set, sched_index, market_index, occupied):
          if not occupied:
              power = self.lighting_schedule[sched_index]*self.rated_power
          else:
              power = _set*self.rated_power
          return power
  
subject: Add lighting schedule for lighting model.