graphit/graph_io/io_helpers.py
def check_graphit_version(version=None):
    """
    Check if the graph version of the file is (backwards) compatible with
    the current graphit module version
    """
    
    try:
        version = float(version)
    except TypeError:
        logger.error('No valid graphit version identifier {0}'.format(version))
        return False
    
    if version > float(__version__):
        logger.error('Graph made with a newer version of graphit {0}, you have {1}'.format(version, __version__))
        return False
    
    return True

    Check if the graph version of the file is (backwards) compatible with
    the current graphit module version
    
Check if the graph version of the file is (backwards) compatible with
the current graphit module version
Check if the graph version of the file is ( backwards ) compatible with the current graphit module version
def check_graphit_version(version=None):
    try:
        version = float(version)
    except TypeError:
        logger.error('No valid graphit version identifier {0}'.format(version))
        return False
    if version > float(__version__):
        logger.error('Graph made with a newer version of graphit {0}, you have {1}'.format(version, __version__))
        return False
    return True
def check_graphit_version ( version = None ) : try : version = float ( version ) except TypeError : logger . error ( 'No valid graphit version identifier {0}' . format ( version ) ) return False if version > float ( __version__ ) : logger . error ( 'Graph made with a newer version of graphit {0}, you have {1}' . format ( version , __version__ ) ) return False return True
Check if the graph version of the file is (backwards) compatible with
the current graphit module version
Check if the graph version of the file is ( backwards ) compatible with the current graphit module version
"""
    Check if the graph version of the file is (backwards) compatible with
    the current graphit module version
    """
version