src.combined_metrics package

Submodules

src.combined_metrics.combined_metrics module

Read workout data and calculate combined metrics.

src.combined_metrics.combined_metrics.configure_plot(ax, x_ticks, x_label, y_label, title) None[source]

Configure plot settings.

src.combined_metrics.combined_metrics.main() None[source]

Main function to run the script.

src.combined_metrics.combined_metrics.plot_duration(params: PlotParams) None[source]

Plot workout duration using a PlotParams object.

Parameters:

params (PlotParams) – PlotParams containing table, year and month

Returns:

None

src.combined_metrics.combined_metrics.plot_duration_volume_1rm(params: PlotParams) None[source]

Plot workout duration, volume and 1RM.

Parameters:

table (TinyDB.table) – TinyDB table

Returns:

None

src.combined_metrics.combined_metrics.plot_frequency(params: PlotParams) None[source]

Plot workout frequency.

Parameters:
  • table (TinyDB.table) – TinyDB table

  • year_to_plot (str) – year to plot

Returns:

None

src.combined_metrics.combined_metrics.save_plot(fig, path) None[source]

Save the plot to the specified path.

src.combined_metrics.get_frequency_data module

Prepare workout frequency data for plotting.

src.combined_metrics.get_frequency_data.get_frequency_data(table, year_to_plot: str) DataFrame[source]

Get workout frequency data for plotting.

Parameters:
  • table (TinyDB.table) – TinyDB table

  • year_to_plot (str) – year to plot

Returns:

workout frequency data

Return type:

pd.DataFrame

Module contents