pykubegrader.graders package#

Submodules#

pykubegrader.graders.late_assignments module#

pykubegrader.graders.late_assignments.calculate_late_submission(due: str, submitted: str, Q0: int = 100, Q_min: int = 40, k: float = 6.88e-05) float[source]#

Calculate the percentage value based on an exponential decay model with respect to a due date, using datetime string inputs.

Parameters: - due_date_str (str): The due date as a string in the format “%Y-%m-%d %H:%M:%S”. - submission_date (str): The comparison date as a string in the format “%Y-%m-%d %H:%M:%S”. - Q0 (float): Initial value (default is 100). - Q_min (float): Minimum value (default is 40). - k (float): Decay constant per minute (default is 6.88e-5).

Returns: - float: The percentage value after decay, bounded between Q_min and Q0.

Module contents#