Skip to content

redplanet.user_config.set_max_size_to_calculate_hash_GiB

set_max_size_to_calculate_hash_GiB(value: float) -> None

Set the maximum size of a local file (in GiB) for which a hash will be calculated in order to verify its integrity. If the file is larger than this size, the hash will not be calculated.

Parameters:

Name Type Description Default
value float
required
Source code in src/redplanet/user_config/max_hash_size.py
def set_max_size_to_calculate_hash_GiB(value: float) -> None:
    """
    Set the maximum size of a local file (in GiB) for which a hash will be calculated in order to verify its integrity. If the file is larger than this size, the hash will not be calculated.

    Parameters
    ----------
    value : float
    """
    global _max_size_to_calculate_hash_GiB
    _max_size_to_calculate_hash_GiB = value
    return