model_utilities.py
def appendToFile(filename, model):
    """Appends a model to a file.

    Parameters
    ----------
    filename : string which specifies the path.

    model : mplus model object
    """

    with open(filename, 'a') as f:

        f.write(model.name + ":\n")
        for i, line in enumerate(model.model):
            if model.labels:
                f.write(line + " (" + model.labels[i] + ");\n")
            else:
                f.write(line + ";\n")

        f.write("\n")
Appends a model to a file.

    Parameters
    ----------
    filename : string which specifies the path.

    model : mplus model object
    
Appends a model to a file.
Parameters

filename : string which specifies the path.

model : mplus model object
Appends a model to a file . Parameters filename : string which specifies the path . model : mplus model object
def appendToFile(filename, model):
    with open(filename, 'a') as f:
        f.write(model.name + ":\n")
        for i, line in enumerate(model.model):
            if model.labels:
                f.write(line + " (" + model.labels[i] + ");\n")
            else:
                f.write(line + ";\n")
        f.write("\n")
def appendToFile ( filename , model ) : with open ( filename , 'a' ) as f : f . write ( model . name + ":\n" ) for i , line in enumerate ( model . model ) : if model . labels : f . write ( line + " (" + model . labels [ i ] + ");\n" ) else : f . write ( line + ";\n" ) f . write ( "\n" )
Appends a model to a file.
Appends a model to a file .
"""Appends a model to a file.

    Parameters
    ----------
    filename : string which specifies the path.

    model : mplus model object
    """
filename
model