from lib.irt.models.three_parameter_logistic import ThreeParameterLogistic class ItemResponseFunction(): def __init__(self, irt_model): self.model_data = irt_model def calculate(self, **kwargs): if self.model_data.model == '3PL': return ThreeParameterLogistic(self.model_data, kwargs).result() else: # potentially error out return None