Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gpfs-policy
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
gpfs-policy
Merge requests
!46
Bugfix: Added numpy datetime as valid type for run_date
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bugfix: Added numpy datetime as valid type for run_date
mdefende/gpfs-policy:bugfix-fix-timestamp-type
into
main
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Matthew K Defenderfer
requested to merge
mdefende/gpfs-policy:bugfix-fix-timestamp-type
into
main
4 months ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
65ef422f
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
65ef422f
add np.datetime64 as valid type for run_date to add compatibility with some cudf workflows
· 65ef422f
Matthew K Defenderfer
authored
4 months ago
src/rc_gpfs/process/factory.py
+
1
−
1
Options
@@ -48,7 +48,7 @@ class Aggregator:
self
,
delta_vals
:
int
|
List
[
int
],
delta_unit
:
Literal
[
'
D
'
,
'
W
'
,
'
M
'
,
'
Y
'
],
run_date
:
pd
.
Timestamp
run_date
:
pd
.
Timestamp
|
np
.
datetime64
)
->
List
[
int
|
pd
.
Timestamp
]:
deltas
=
pd
.
Series
([
as_timedelta
(
c
,
delta_unit
)
for
c
in
delta_vals
])
cutoffs
=
pd
.
to_datetime
(
run_date
-
deltas
)
Loading