Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change argparse type int -> float #150

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/stepcount/stepcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Loading