lab

create or use our lab

create_clone(name, desc='', clone_type='remote', clone_id=None)[source]

Create a clone entry in BASE lab.

If clone_id is not provided, a unique one is generated automatically.

create_project(settings)[source]

Create the project directory structure, databases, and settings file. Returns the absolute path to the settings JSON.

Parameters:

settings (dict)

Return type:

str

get_logs()[source]

Retrieve all log records from the logs database and return them as a DataFrame.

This function reads shared application settings to locate the SQLite logs.db file, queries all rows from the logs table, and converts the results into a pandas DataFrame with column names preserved.

Returns:

A DataFrame containing all records from the logs table.

Return type:

pandas.DataFrame

init_clone(clone_config, data_path, component_dir)[source]
Parameters:
  • clone_config (dict)

  • data_path (str)

  • component_dir (str)

lab_setup(settings_path)[source]
Parameters:

settings_path (str | None)

Return type:

None