App Start
Handles the app initilization procedure.
initialization()
Handles the app initialization process.
Source code in evaluator/backend/app_start.py
create_init_run_state(app_state)
Creates the init run state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
app_state |
AppState
|
The current app state. |
required |
Returns:
Type | Description |
---|---|
RunState
|
The intial run state. |
Source code in evaluator/backend/app_start.py
_get_total_runs(app_state)
Get the total number of runs in the output directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
app_state |
AppState
|
The current app state. |
required |
Returns:
Type | Description |
---|---|
int
|
The number of total potential generated domains to evaluate. |
Source code in evaluator/backend/app_start.py
_create_paper_keys(directory_paths, bco_results_data)
Creates an entry for each paper in the evaluations file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory_paths |
list[str]
|
Path to the generated BCO directories. |
required |
bco_results_data |
dict
|
The loaded BCO evaluations results file. |
required |
Returns:
Type | Description |
---|---|
dict
|
The updated BCO evaluations data. |
Source code in evaluator/backend/app_start.py
_load_config_data(filepath='./evaluator/backend/conf.json')
Loads the App configuration data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath |
str
|
Filepath to the App config data. |
'./evaluator/backend/conf.json'
|
Returns:
Type | Description |
---|---|
ConfigData | None
|
The configuration data on success, None on error. |