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
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
d20c1df9
Commit
d20c1df9
authored
2 years ago
by
Erin (Josh) Rigler
Browse files
Options
Downloads
Patches
Plain Diff
Better way to create array of UTCDateTimes
parent
0dcdead5
No related branches found
No related tags found
1 merge request
!196
specify interval over which min_count is applied to AverageAlgorithm
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/algorithm/AverageAlgorithm.py
+1
-3
1 addition, 3 deletions
geomagio/algorithm/AverageAlgorithm.py
with
1 addition
and
3 deletions
geomagio/algorithm/AverageAlgorithm.py
+
1
−
3
View file @
d20c1df9
...
@@ -164,9 +164,7 @@ class AverageAlgorithm(Algorithm):
...
@@ -164,9 +164,7 @@ class AverageAlgorithm(Algorithm):
# apply min_count_start and min_count_end
# apply min_count_start and min_count_end
# NOTE: the logic here is not very intuitive, but it works as intended
# NOTE: the logic here is not very intuitive, but it works as intended
utc_datetimes
=
numpy
.
array
(
utc_datetimes
=
timeseries
[
0
].
times
(
type
=
"
utcdatetime
"
)
[
timeseries
[
0
].
stats
.
starttime
+
t
for
t
in
timeseries
[
0
].
times
()]
)
average_data
[
average_data
[
(
count_data
<
timeseries
.
count
())
&
(
utc_datetimes
>
self
.
min_count_end
)
(
count_data
<
timeseries
.
count
())
&
(
utc_datetimes
>
self
.
min_count_end
)
]
=
numpy
.
nan
]
=
numpy
.
nan
...
...
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