Shoraky commited on
Commit
4171d08
·
1 Parent(s): 8b52dd7

Refine support foot metric label

Browse files
Files changed (1) hide show
  1. api.py +6 -1
api.py CHANGED
@@ -870,8 +870,13 @@ def build_skeleton_frames(rep, analytics, start_frame, end_frame):
870
  return skeleton_frames
871
 
872
 
 
 
 
 
 
873
  def metric_name(key: str) -> str:
874
- return key.replace("_", " ").title()
875
 
876
 
877
  FULL_INTERVAL_KEYS = [
 
870
  return skeleton_frames
871
 
872
 
873
+ METRIC_DISPLAY_NAMES = {
874
+ "stationary_foot_ball_distance_pctw_shoulder": "Support Foot-Ball Distance (% Shoulder Width)",
875
+ }
876
+
877
+
878
  def metric_name(key: str) -> str:
879
+ return METRIC_DISPLAY_NAMES.get(key, key.replace("_", " ").title())
880
 
881
 
882
  FULL_INTERVAL_KEYS = [