dipy/data/fetcher.py
def check_md5(filename, stored_md5):
    """
    Computes the md5 of filename and check if it matches with the supplied string md5

    Input
    -----
    filename : string
        Path to a file.
    md5 : string
        Known md5 of filename to check against.

    """
    computed_md5 = _get_file_md5(filename)
    if stored_md5 != computed_md5:
        msg = "MD5 checksum of filename " + filename + " failed.\n"
        msg += "Expected MD5 was " + stored_md5 + "\n"
        msg += "Current MD5 is " + computed_md5 + "\n"
        msg += "Please check if the data has been downloaded "
        msg += "correctly or if the upstream data has changed."
        print (msg)

    Computes the md5 of filename and check if it matches with the supplied string md5

    Input
    -----
    filename : string
        Path to a file.
    md5 : string
        Known md5 of filename to check against.

    
Computes the md5 of filename and check if it matches with the supplied string md5
Input

filename : string
Path to a file.
md5 : string
Known md5 of filename to check against.
Computes the md5 of filename and check if it matches with the supplied string md5 Input filename : string Path to a file . md5 : string Known md5 of filename to check against .
def check_md5(filename, stored_md5):
    computed_md5 = _get_file_md5(filename)
    if stored_md5 != computed_md5:
        msg = "MD5 checksum of filename " + filename + " failed.\n"
        msg += "Expected MD5 was " + stored_md5 + "\n"
        msg += "Current MD5 is " + computed_md5 + "\n"
        msg += "Please check if the data has been downloaded "
        msg += "correctly or if the upstream data has changed."
        print (msg)
def check_md5 ( filename , stored_md5 ) : computed_md5 = _get_file_md5 ( filename ) if stored_md5 != computed_md5 : msg = "MD5 checksum of filename " + filename + " failed.\n" msg += "Expected MD5 was " + stored_md5 + "\n" msg += "Current MD5 is " + computed_md5 + "\n" msg += "Please check if the data has been downloaded " msg += "correctly or if the upstream data has changed." print ( msg )
Computes the md5 of filename and check if it matches with the supplied string md5
Input
Computes the md5 of filename and check if it matches with the supplied string md5 Input
"""
    Computes the md5 of filename and check if it matches with the supplied string md5

    Input
    -----
    filename : string
        Path to a file.
    md5 : string
        Known md5 of filename to check against.

    """
filename
stored_md5