Skip to main content

defaults

Default values and constants for Datalayer Core.

def get_default_credits_limit(reservations: list[dict[str, typing.Any]], credits: dict[str, typing.Any]) -> float

Get the default credits limit based on the available credits and reservations.

Parameters

  • reservations : list[dict[str, Any]]

    List of current reservations.

  • credits : dict[str, Any]

    Current credits information.

Returns

  • float

    The calculated default credits limit.