Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

Commit b3ace9c

Browse files
committed
Merge branch 'main' into tg/drop_trailing
2 parents 1609f23 + 6c2f0d3 commit b3ace9c

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: CI
2-
on: [push, pull_request]
2+
# Run on main, tags, or any pull request
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # Daily at 2 AM UTC (8 PM CST)
6+
push:
7+
branches: [main]
8+
tags: ["*"]
9+
pull_request:
310
jobs:
411
test:
512
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -9,8 +16,8 @@ jobs:
916
matrix:
1017
version:
1118
- '1.5'
12-
- '1.6'
13-
- '1.7-nightly'
19+
- '1'
20+
- 'nightly'
1421
os:
1522
- ubuntu-latest
1623
arch:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AssociativeWindowAggregation"
22
uuid = "444271a7-5434-4a02-b82b-0e30a9223c60"
33
authors = ["Thomas Gillam <tpgillam@googlemail.com>"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

src/base.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ Base.@propagate_inbounds function update_state!(
139139
empty!(state.previous_cumsum)
140140
upper = length(state.values)
141141
lower = 1 + num_values_to_remove
142-
if (upper - lower) >= 0 # i.e. we have a non-zero range
142+
@inbounds if (upper - lower) >= 0 # i.e. we have a non-zero range
143143
i = upper
144-
accumulation = @inbounds(state.values[i])
144+
accumulation = state.values[i]
145145
while true
146146
push!(state.previous_cumsum, accumulation)
147147
i -= 1
148148
i >= lower || break
149149
# If we were to use a mutating operation here, then we'd have to introduce
150150
# a copy above. So there is no drawback to using the non-mutating Op.
151-
accumulation = Op(@inbounds(state.values[i]), accumulation)
151+
accumulation = Op(state.values[i], accumulation)
152152
end
153153
end
154154

src/time.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mutable struct TimeWindowAssociativeOp{Value,Op,Op!,Time,TimeDiff}
4141
throw(ArgumentError("Got window $window, but it must be positive."))
4242
end
4343
return new{Value,Op,Op!,Time,TimeDiff}(
44-
WindowedAssociativeOp{Value,Op,Op!,}(), window, Deque{Time}(), false
44+
WindowedAssociativeOp{Value,Op,Op!}(), window, Deque{Time}(), false
4545
)
4646
end
4747
end

0 commit comments

Comments
 (0)