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
Commits
8f7e49d8
Commit
8f7e49d8
authored
1 month ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
Remove timedelta values less than or equal to 0
parent
b21daba1
No related branches found
No related tags found
2 merge requests
!76
Patch v0.5.1
,
!68
Remove timedelta values less than or equal to 0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rc_gpfs/utils/datetime.py
+1
-1
1 addition, 1 deletion
src/rc_gpfs/utils/datetime.py
with
1 addition
and
1 deletion
src/rc_gpfs/utils/datetime.py
+
1
−
1
View file @
8f7e49d8
...
@@ -20,7 +20,7 @@ def create_timedelta_breakpoints(
...
@@ -20,7 +20,7 @@ def create_timedelta_breakpoints(
delta_unit
:
Literal
[
'
D
'
,
'
W
'
]
delta_unit
:
Literal
[
'
D
'
,
'
W
'
]
)
->
List
[
np
.
datetime64
]:
)
->
List
[
np
.
datetime64
]:
run_date
=
as_datetime
(
run_date
)
run_date
=
as_datetime
(
run_date
)
return
[
run_date
-
as_timedelta
(
c
,
delta_unit
)
for
c
in
delta_vals
]
return
[
run_date
-
as_timedelta
(
c
,
delta_unit
)
for
c
in
delta_vals
if
c
>
0
]
def
create_timedelta_labels
(
def
create_timedelta_labels
(
delta_vals
:
int
|
List
[
int
],
delta_vals
:
int
|
List
[
int
],
...
...
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