From d70f31b766e079e84f459648e5d0a021e7842e3e Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Thu, 19 Dec 2024 19:06:15 -0300 Subject: [PATCH] fix: change argparse type int -> float --- src/stepcount/stepcount.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stepcount/stepcount.py b/src/stepcount/stepcount.py index 4a9005a..ca09756 100644 --- a/src/stepcount/stepcount.py +++ b/src/stepcount/stepcount.py @@ -62,13 +62,13 @@ def main(): type=float, default=0.5) parser.add_argument("--peak1-min-walk-per-day", help="The minimum required walking time (in minutes) in a day for peak1 calculation.", - type=int, default=10) + type=float, default=10) parser.add_argument("--peak30-min-walk-per-day", help="The minimum required walking time (in minutes) in a day for peak30 calculation.", - type=int, default=30) + type=float, default=30) parser.add_argument("--p95-min-walk-per-day", help="The minimum required walking time (in minutes) in a day for p95 calculation.", - type=int, default=10) + type=float, default=10) parser.add_argument("--bouts-min-walk", help="Minimum percentage of walking for a bout to be considered valid.", type=float, default=0.8) parser.add_argument("--bouts-max-idle", help="Maximum idle (in windows) before a bout is considered to have ended.",