File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,16 @@ def __init__(
84
84
self .freq = to_offset (freq )
85
85
self .origin = origin
86
86
87
- if (
88
- isinstance (self .freq , MonthEnd | QuarterEnd | YearEnd )
89
- or
87
+ if isinstance (self .freq , MonthEnd | QuarterEnd | YearEnd ) or self .origin in [
88
+ "end" ,
89
+ "end_day" ,
90
+ ]:
90
91
# The backward resample sets ``closed`` to ``'right'`` by default
91
92
# since the last value should be considered as the edge point for
92
93
# the last bin. When origin in "end" or "end_day", the value for a
93
94
# specific ``cftime.datetime`` index stands for the resample result
94
95
# from the current ``cftime.datetime`` minus ``freq`` to the current
95
96
# ``cftime.datetime`` with a right close.
96
- self .origin in ["end" , "end_day" ]
97
- ):
98
97
if closed is None :
99
98
self .closed = "right"
100
99
else :
You can’t perform that action at this time.
0 commit comments