Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
Commits
bbc772af
Commit
bbc772af
authored
3 years ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Patches
Plain Diff
getApply refactoresd
parent
1361e460
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!256
Filter funcs
Pipeline
#22946
failed with stage
in 1 minute and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/lib/tools.py
+3
-3
3 additions, 3 deletions
saqc/lib/tools.py
with
3 additions
and
3 deletions
saqc/lib/tools.py
+
3
−
3
View file @
bbc772af
...
...
@@ -570,7 +570,7 @@ def getFreqDelta(index):
return
delta
def
getA
ttrOrA
pply
(
in_obj
,
apply_obj
,
attr_access
=
"
__name__
"
,
attr_or
=
"
apply
"
):
def
getApply
(
in_obj
,
apply_obj
,
attr_access
=
"
__name__
"
,
attr_or
=
"
apply
"
):
"""
For the repeating task of applying build in (accelerated) methods/funcs (`apply_obj`),
of rolling/resampling - like objects (`in_obj`) ,
...
...
@@ -605,11 +605,11 @@ def statPass(
satisfy, `comparator`(`stat`(*sub_chunk*), `sub_thresh`)
"""
stat_parent
=
datcol
.
rolling
(
winsz
,
min_periods
=
min_periods
)
stat_parent
=
getA
ttrOrA
pply
(
stat_parent
,
stat
)
stat_parent
=
getApply
(
stat_parent
,
stat
)
exceeds
=
comparator
(
stat_parent
,
thresh
)
if
sub_winsz
:
stat_sub
=
datcol
.
rolling
(
sub_winsz
)
stat_sub
=
getA
ttrOrA
pply
(
stat_sub
,
stat
)
stat_sub
=
getApply
(
stat_sub
,
stat
)
min_stat
=
stat_sub
.
rolling
(
winsz
-
sub_winsz
,
closed
=
"
both
"
).
min
()
exceeding_sub
=
comparator
(
min_stat
,
sub_thresh
)
exceeds
=
exceeding_sub
&
exceeds
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment