bahamas.workflow

Created on September 8, 2025 @author: wangc

Attributes

logger

file_dir

bbn_config_default

ccf_config_default

Classes

Workflow

Workflow manager for BAHAMAS calculation

Module Contents

bahamas.workflow.logger[source]
bahamas.workflow.file_dir[source]
bahamas.workflow.bbn_config_default[source]
bahamas.workflow.ccf_config_default[source]
class bahamas.workflow.Workflow(config)[source]

Workflow manager for BAHAMAS calculation

_config[source]
_bbn_config = None[source]
_ccf_config = None[source]
update_config(config, name)[source]

update default config with user provided data

Parameters:
  • config (dict) – User-provided config file

  • name (str) – Name for the config file (i.e., BBN or CCF)

Raises:

IOError – If name is valid, raise the error

Returns:

updated config file

Return type:

dict

initialize_bbn()[source]

Initialize BBN calculation

initialize_ccf()[source]

Initialize CCF calculation

run_bbn()[source]

Run BBN Calculation

Raises:

IOError – Error out if invalid input for analysis type is provided

run_ccf()[source]

Run CCF calculation

run()[source]

Execute the workflow

write(data, fname, style='csv')[source]

Dump data

Parameters:
  • data (pandas.DataFrame) – Output data to dump

  • fname (str) – File name for saving the data

  • style (str, optional) – Type of file (defaults to “csv”)

visualize()[source]
reset()[source]
_validate(config)[source]

Validate input file using JSON schema

Parameters:

config (dict) – Dictionary for input

Raises:

IOError – Error out if invalid