Skip to main content

Basic usage

Create, view or edit an existing database:

from bamboost import Manager
db = Manager('path/to/database')

Create a new entry in the database:

new_entry = db.create_simulation(
parameters: dict = {...},
)

Display the content in the database:

db.df  # Returns a pandas DataFrame

Select a specific entry:

db['simulation_1']  # Returns a Simulation object

Or leverage pandas to query the database:

db.df[(db.df['param_1'] == 1.0) && (db.df['param_2'] > 2.0)]