Skip to content

Commit

Permalink
feat: add minNonWearDuration argument for estimating non-wear episodes
Browse files Browse the repository at this point in the history
This commit adds a new argument, --minNonWearDuration, to the accProcess.py script. The argument allows the user to specify the minimum non-wear duration in minutes for calculating non-wear time. The default value is set to 60 minutes.
  • Loading branch information
chanshing committed Nov 6, 2024
1 parent 38f5a97 commit ba14445
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/accelerometer/accProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def main(): # noqa: C901
metavar='mg', default=13, type=int,
help="""stationary mg threshold (default
: %(default)s mg))""")
parser.add_argument('--minNonWearDuration',
metavar='mins', default=60, type=int,
help="""minimum non-wear duration in minutes
(default : %(default)s mins))""")
parser.add_argument('--calibrationSphereCriteria',
metavar='mg', default=0.3, type=float,
help="""calibration sphere threshold (default
Expand Down Expand Up @@ -326,7 +330,7 @@ def deleteIntermediateFiles():
activityClassification=args.activityClassification,
timeZone=args.timeZone, startTime=args.startTime,
endTime=args.endTime, epochPeriod=args.epochPeriod,
stationaryStd=args.stationaryStd,
stationaryStd=args.stationaryStd, minNonWearDuration=args.minNonWearDuration,
mgCpLPA=args.mgCpLPA, mgCpMPA=args.mgCpMPA, mgCpVPA=args.mgCpVPA,
activityModel=args.activityModel,
intensityDistribution=args.intensityDistribution,
Expand Down

0 comments on commit ba14445

Please sign in to comment.