@utils.memoize_instancemethod
    def get_eff_ref(self, var, y, x=None):
        base = y + '.constraints.' + var
        try:
            eff_ref = self.get_option(base + '_eff_ref', x=x)
        except exceptions.OptionNotSetError:
            eff_ref = False
        if eff_ref is False:
            eff_ref = self.get_option(base + '_eff', x=x)
        # NOTE: Will cause errors in the case where (1) eff_ref is not defined
        # and (2) eff is set to "file". That is ok however because in this edge
        # case eff_ref should be manually set as there is no straightforward
        # way to derive it from the time series file.
        return eff_ref
Get reference efficiency, falling back to efficiency if no
dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/Model.get_eff_ref