aequilibrae.project.Matrices#

class aequilibrae.project.Matrices(project)[source]#

Gateway into the matrices available/recorded in the model

__init__(project)[source]#

Methods

__init__(project)

check_exists(name)

Checks whether a matrix with a given name exists

clear_database()

Removes records from the matrices database that do not exist in disk

delete_record(matrix_name)

Deletes a Matrix Record from the model and attempts to remove from disk

get_matrix(matrix_name)

Returns an AequilibraE matrix available in the project

get_record(matrix_name)

Returns a model Matrix Record for manipulation in memory

list()

List of all matrices available :returns: ) Pandas DataFrame listing all matrices available in the model :rtype: df (pd.DataFrame

new_record(name, file_name[, matrix])

Creates a new record for a matrix in disk, but does not save it

reload()

Discards all memory matrices in memory and loads recreate them

update_database()

Adds records to the matrices database for matrix files found on disk