spin.py
def main():
    """
    Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
    Prints formated output of modelE and modelSpin functions.
    """
    filename = str(input('Reminder: your data file must be in the same folder as your program file.\n\nPlease enter the filename (data.txt): ') or 'data.txt')
    I = int(input('Number of steps (10)? ') or '10')
    T = float(input('Temperature, a float greater than zero (1.0): ') or '1')
    node_qty, weights = parse_data(get_data(filename))
    model = Model(node_qty, weights)
    nodes = model.getNodes()
    
    print("\nOutput: \n\n", modelE(model, nodes, node_qty, I, T), "\n")
    print(*(modelSpin(model, nodes)))

    Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
    Prints formated output of modelE and modelSpin functions.
    
Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
Prints formated output of modelE and modelSpin functions.
Requests input from the user invokes data retrieval and parsing invokes and saves an instance of a Model and the respective system Nodes . Prints formated output of modelE and modelSpin functions .
def main():
    filename = str(input('Reminder: your data file must be in the same folder as your program file.\n\nPlease enter the filename (data.txt): ') or 'data.txt')
    I = int(input('Number of steps (10)? ') or '10')
    T = float(input('Temperature, a float greater than zero (1.0): ') or '1')
    node_qty, weights = parse_data(get_data(filename))
    model = Model(node_qty, weights)
    nodes = model.getNodes()
    print("\nOutput: \n\n", modelE(model, nodes, node_qty, I, T), "\n")
    print(*(modelSpin(model, nodes)))
def main ( ) : filename = str ( input ( 'Reminder: your data file must be in the same folder as your program file.\n\nPlease enter the filename (data.txt): ' ) or 'data.txt' ) I = int ( input ( 'Number of steps (10)? ' ) or '10' ) T = float ( input ( 'Temperature, a float greater than zero (1.0): ' ) or '1' ) node_qty , weights = parse_data ( get_data ( filename ) ) model = Model ( node_qty , weights ) nodes = model . getNodes ( ) print ( "\nOutput: \n\n" , modelE ( model , nodes , node_qty , I , T ) , "\n" ) print ( * ( modelSpin ( model , nodes ) ) )
Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
Requests input from the user invokes data retrieval and parsing invokes and saves an instance of a Model and the respective system Nodes .
"""
    Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
    Prints formated output of modelE and modelSpin functions.
    """