watts.Database#

class watts.Database(path=None)[source]#

Database of simulation results

Parameters:

path – Path to database directory

default_path#

Path used by default when creating instances if no path is specified

job_id#

Integer ID assigned to new results

path#

Base path for the database directory

results#

List of simulation results in database

Methods

add_result(result)

Add a result to the database

clear()

Remove all results from database

get_default_path()

Get the default path used when instances are created

remove(result)

Remove a single result from the database

set_default_path(path)

Set the default path used when instances are created

show_summary()

Show a summary of results in database