Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aeri_quality_control
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aeri
aeri_quality_control
Commits
466c0849
Commit
466c0849
authored
8 years ago
by
Alex Diebold
Browse files
Options
Downloads
Patches
Plain Diff
modified detector_temp check algorithm
parent
72004dde
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aeri_qc/cooler_checks.py
+6
-6
6 additions, 6 deletions
aeri_qc/cooler_checks.py
with
6 additions
and
6 deletions
aeri_qc/cooler_checks.py
+
6
−
6
View file @
466c0849
...
...
@@ -87,7 +87,7 @@ def flatten_out(original_flags, pds):
std_data
[
'
mean_std
'
].
append
(
mean_std
)
std_mean_std
=
np
.
std
(
std_data
[
'
mean_std
'
][
lower
:
upper
])
std_data
[
'
std_mean_std
'
].
append
(
std_mean_std
)
if
std_mean_std
<
20
:
if
std_mean_std
<
20
or
np
.
isnan
(
std_mean_std
)
:
flags
[
lower
:
upper
]
=
flags
[
lower
:
upper
].
replace
(
False
,
True
)
else
:
flags
[
lower
:
upper
]
=
flags
[
lower
:
upper
].
replace
(
True
,
False
)
...
...
@@ -98,7 +98,7 @@ def flatten_out(original_flags, pds):
new_flags
=
flags
&
(
np
.
asarray
(
std_data
[
'
mean
'
])
>
0.35
)
return
new_flags
,
std_data
return
new_flags
@checklist.add_check
(
depends
=
[
'
detectorTemp
'
,
'
datetime
'
],
affects_calibration
=
True
,
description
=
'
test for strong periodicity in temperature on the order of 2-10 mins
'
)
def
detector_temp_check
(
frame
,
parameters
):
...
...
@@ -110,12 +110,12 @@ def detector_temp_check(frame, parameters):
flags_total
=
{}
for
win_type
in
'
bartlett
'
,
'
parzen
'
,
'
hann
'
,
'
nuttall
'
:
flags
,
pds
=
flag_detector_temp_oscillations
(
detector_temp
,
win_type
=
win_type
)
flags
,
std_data
=
flatten_out
(
flags
.
copy
(),
pds
)
flags
=
flatten_out
(
flags
.
copy
(),
pds
)
flags_total
[
win_type
]
=
flags
flags_final
=
flags_total
[
'
bartlett
'
]
|
flags_total
[
'
parzen
'
]
flags_final
=
flags_final
|
flags_total
[
'
hann
'
]
flags_final
=
flags_final
|
flags_total
[
'
nuttall
'
]
flags_final
=
flags_total
[
'
bartlett
'
]
&
flags_total
[
'
parzen
'
]
flags_final
=
flags_final
&
flags_total
[
'
hann
'
]
flags_final
=
flags_final
&
flags_total
[
'
nuttall
'
]
return
flags_final
...
...
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