Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance scheduled for Thursday, April 10, from 5 PM to 6 PM ET.
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
ca0bf62a
Commit
ca0bf62a
authored
4 years ago
by
Cain, Payton David
Browse files
Options
Downloads
Patches
Plain Diff
Support variable length list in filter_iqrs
parent
2104d19b
No related branches found
No related tags found
2 merge requests
!146
Release CMO metadata to production
,
!58
Affine running process
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/adjusted/Affine.py
+8
-5
8 additions, 5 deletions
geomagio/adjusted/Affine.py
with
8 additions
and
5 deletions
geomagio/adjusted/Affine.py
+
8
−
5
View file @
ca0bf62a
...
@@ -203,11 +203,14 @@ def filter_iqrs(
...
@@ -203,11 +203,14 @@ def filter_iqrs(
threshold
:
float
=
3.0
,
threshold
:
float
=
3.0
,
)
->
List
[
float
]:
)
->
List
[
float
]:
"""
Filters
"
bad
"
weights generated by unreliable readings
"""
"""
Filters
"
bad
"
weights generated by unreliable readings
"""
good
=
(
good
=
None
filter_iqr
(
multiseries
[
0
],
threshold
=
threshold
,
weights
=
weights
)
for
series
in
multiseries
:
&
filter_iqr
(
multiseries
[
1
],
threshold
=
threshold
,
weights
=
weights
)
filtered
=
filter_iqr
(
series
,
threshold
=
threshold
,
weights
=
weights
)
&
filter_iqr
(
multiseries
[
2
],
threshold
=
threshold
,
weights
=
weights
)
if
good
is
None
:
)
good
=
filtered
else
:
good
=
good
&
filtered
return
weights
*
good
return
weights
*
good
...
...
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