-
Notifications
You must be signed in to change notification settings - Fork 0
Modules and Functions
wilsonleong edited this page Jan 1, 2022
·
13 revisions
This module runs the main application. The process goes like this:
- Load configurations
- Load project data (based on configurations defined)
- Pre-process the project data
- Filter and aggregate the project data, if applicable
- Generate the gantt chart based on the processed project data
This module handles the following:
- loading configuration data
- pre-processing the input data
- filtering & aggregating the input data
get_cfg(cfg_file_path)
This function reads the configurations from the JSON
file.
get_data(cfg)
This function loads the project data from the input file based on the config JSON file.
preprocess_data(cfg, df)
This function prepares the project data for the chart.
filter_agg_data(cfg, df)
This function filters and aggregates the data based on the config, if applicable.
This module generates the gantt chart based on the configurations and the input file.
generate_gantt(cfg, df2)
This function plots the gantt chart and saves it as a PNG file.