# Copyright (C) 2013 ETH Zurich, Institute for Astronomy

"""
Created on Mar 18, 2014
author: jakeret
"""

from __future__ import print_function, division, absolute_import, unicode_literals


class Plugin(object):
    def __init__(self, ctx):
        self.ctx = ctx

    def get_workload(self):
        values = [
            i for i in range(self.ctx.params.valuesMin, self.ctx.params.valuesMax)
        ]

        for value in values:
            ctx = self.ctx.copy()
            ctx.value = value
            yield ctx
