Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Merge requests
!867
Flag constants fix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Flag constants fix
flagConstantsFix
into
develop
Overview
0
Commits
8
Pipelines
1
Changes
4
Merged
Peter Lünenschloß
requested to merge
flagConstantsFix
into
develop
3 weeks ago
Overview
0
Commits
8
Pipelines
1
Changes
1
Expand
adresses
#495
and fixes issue
adds reported bug as test case
👍
0
👎
0
Merge request reports
Viewing commit
edf9622b
Prev
Next
Show latest version
1 file
+
8
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
edf9622b
fixed/clarified docstring
· edf9622b
Peter Lünenschloß
authored
1 year ago
saqc/funcs/constants.py
+
8
−
8
Options
@@ -51,18 +51,18 @@ class ConstantsMixin:
thresh :
Maximum total change allowed per window.
window :
Size of the moving window. This determines the number of observations used
for calculating the absolute change per window.
Each window will be of either of a fixed number of periods (integer defined window),
or will have a fixed temporal extension (offset defined window).
min_periods :
Minimum number of observations in window required to generate
a flag. Must be an integer greater or equal `2`, because a
a flag. This is to exclude underpopulated offset defined windows from flagging.
Must be an integer greater or equal `2`, because a
single value would always be considered constant.
Defaults to `2`.
window :
Size of the moving window. This is the number of observations used
for calculating the statistic. Each window will be a fixed size.
If it is an offset then this will be the time period of each window.
Each window will be a variable sized based on the observations included
in the time-period.
"""
d
:
pd
.
Series
=
self
.
_data
[
field
]
validateWindow
(
window
,
index
=
d
.
index
)
Loading