Skip to content

Commit fa51402

Browse files
authored
Merge branch 'main' into exorcise_lv
2 parents 395a28d + eab62d1 commit fa51402

21 files changed

+106
-44
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Keep dependencies for GitHub Actions up-to-date
9+
- package-ecosystem: 'github-actions'
10+
directory: '/'
11+
schedule:
12+
interval: 'weekly'

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
arch:
2727
- x64
2828
steps:
29-
- uses: actions/checkout@v2
30-
- uses: julia-actions/setup-julia@v1
29+
- uses: actions/checkout@v4
30+
- uses: julia-actions/setup-julia@v2
3131
with:
3232
version: ${{ matrix.version }}
3333
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/cache@v1
34+
- uses: julia-actions/cache@v2
3535
- uses: julia-actions/julia-buildpkg@v1
3636
- uses: julia-actions/julia-runtest@v1
3737
- uses: julia-actions/julia-processcoverage@v1
38-
- uses: codecov/codecov-action@v4
38+
- uses: codecov/codecov-action@v5
3939
with:
4040
file: lcov.info
4141
token: ${{ secrets.codecov_token }}

docs/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Generating and Previewing Documentation
2+
3+
## Adding Documentation
4+
5+
`Documenter.jl` is used to generate package documentation.
6+
7+
The general guidelines are to have documentation split into meaningful sections,
8+
none of which are too long. If a new functionality is added then create a new
9+
documentation page in `src`. Then map that markdown file to a section in the
10+
documentation in `make.jl` in the `pages` map.
11+
12+
## Previewing Documentation
13+
14+
From the `docs` directory:
15+
16+
```julia
17+
julia --project
18+
_
19+
_ _ _(_)_ | Documentation: https://docs.julialang.org
20+
(_) | (_) (_) |
21+
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
22+
| | | | | | |/ _` | |
23+
| | |_| | | | (_| | | Version 1.11.1 (2024-10-16)
24+
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
25+
|__/ |
26+
27+
julia> include("make.jl")
28+
[ Info: SetupBuildDirectory: setting up build directory.
29+
[ Info: Doctest: running doctests.
30+
[ Info: ExpandTemplates: expanding markdown templates.
31+
[ Info: CrossReferences: building cross-references.
32+
[ Info: CheckDocument: running document checks.
33+
[ Info: Populate: populating indices.
34+
[ Info: RenderDocument: rendering document.
35+
[ Info: HTMLWriter: rendering HTML pages.
36+
┌ Warning: Generated HTML over size_threshold_warn limit: lib/internal.md
37+
│ Generated file size: 128.16 (KiB)
38+
│ size_threshold_warn: 100.0 (KiB)
39+
│ size_threshold: 200.0 (KiB)
40+
│ HTML file: lib/internal/index.html
41+
└ @ Documenter.HTMLWriter ~/.julia/packages/Documenter/C1XEF/src/html/HTMLWriter.jl:1828
42+
[ Info: Automatic `version="0.4.3"` for inventory from ../Project.toml
43+
┌ Warning: Documenter could not auto-detect the building environment. Skipping deployment.
44+
└ @ Documenter ~/.julia/packages/Documenter/C1XEF/src/deployconfig.jl:76
45+
46+
julia> using LiveServer
47+
48+
julia> LiveServer.serve(dir="build/")
49+
✓ LiveServer listening on http://localhost:8000/ ...
50+
(use CTRL+C to shut down)
51+
```

examples/instrumented-jetreco.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ function profile_code(profile, jet_reconstruction, events, niters; R = 0.4, p =
5959
""")
6060
end
6161
"""
62-
Top level call funtion for demonstrating the use of jet reconstruction
62+
Top level call function for demonstrating the use of jet reconstruction
6363
6464
This uses the "jet_reconstruct" wrapper, so algorithm switching
6565
happens inside the JetReconstruction package itself.
6666
67-
Some other ustilities are also supported here, such as profiling and
67+
Some other utilities are also supported here, such as profiling and
6868
serialising the reconstructed jet outputs.
6969
"""
7070
function jet_process(events::Vector{Vector{T}};

examples/jetreco.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using JetReconstruction
1616
include(joinpath(@__DIR__, "parse-options.jl"))
1717

1818
"""
19-
Top level call funtion for demonstrating the use of jet reconstruction
19+
Top level call function for demonstrating the use of jet reconstruction
2020
2121
This uses the "jet_reconstruct" wrapper, so algorithm switching
2222
happens inside the JetReconstruction package itself.

examples/parse-options.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Add `parse_item` code for interpeting `JetAlgorithm.Algorithm` and `RecoStrategy.Strategy` types
2+
Add `parse_item` code for interpreting `JetAlgorithm.Algorithm` and `RecoStrategy.Strategy` types
33
from the command line.
44
"""
55

ext/JetVisualisation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ end
5252
jetsplot(objects, idx_arrays; barsize_phi=0.1, barsize_eta=0.1, colormap=:glasbey_hv_n256, Module=Main)
5353
5454
Plots a 3d bar chart that represents jets. Takes an `objects` array of objects
55-
to display and `idx_arrays`, an array of arrays with indeces, where
56-
`idx_arrays[i]` gives indeces of `objects` that form the jet number `i`. This
55+
to display and `idx_arrays`, an array of arrays with indices, where
56+
`idx_arrays[i]` gives indices of `objects` that form the jet number `i`. This
5757
function's signature might not be the most practical for the current version of
5858
the JetReconstruction.jl package, as it has been written during the early stage
5959
of development. There is now an overload of it that takes a `ClusterSequence`
@@ -225,7 +225,7 @@ function JetReconstruction.animatereco(cs::ClusterSequence, filename;
225225
merge_steps = JetReconstruction.merge_steps(cs)
226226
jet_ranks = JetReconstruction.jet_ranks(cs)
227227

228-
# End point of the catagorical color map
228+
# End point of the categorical color map
229229
# (How to get this programmatically from the CM Symbol?)
230230
colormap_end = 256
231231

src/ClusterSequence.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ add_step_to_history!(clusterseq::ClusterSequence, parent1, parent2, jetp_index,
187187
# retry the clustering with a different strategy.
188188
@assert parent1 >= 1
189189
if clusterseq.history[parent1].child != Invalid
190-
error("Internal error. Trying to recombine an object that has previsously been recombined. Parent " *
190+
error("Internal error. Trying to recombine an object that has previously been recombined. Parent " *
191191
string(parent1) * "'s child index " *
192192
string(clusterseq.history[parent1].child) * ". Parent jet index: " *
193193
string(clusterseq.history[parent1].jetp_index) * ".")
@@ -198,7 +198,7 @@ add_step_to_history!(clusterseq::ClusterSequence, parent1, parent2, jetp_index,
198198

199199
if parent2 >= 1
200200
clusterseq.history[parent2].child == Invalid ||
201-
error("Internal error. Trying to recombine an object that has previsously been recombined. Parent " *
201+
error("Internal error. Trying to recombine an object that has previously been recombined. Parent " *
202202
string(parent2) * "'s child index " *
203203
string(clusterseq.history[parent1].child) * ". Parent jet index: " *
204204
string(clusterseq.history[parent2].jetp_index) * ".")
@@ -363,7 +363,7 @@ Return the number of exclusive jets of a ClusterSequence that are above a certai
363363
364364
# Arguments
365365
- `clusterseq::ClusterSequence`: The `ClusterSequence` object containing the clustering history.
366-
- `dcut::AbstractFloat`: The maximum calue for the distance parameter in the reconstruction.
366+
- `dcut::AbstractFloat`: The maximum value for the distance parameter in the reconstruction.
367367
368368
# Returns
369369
The number of exclusive jets in the `ClusterSequence` object.
@@ -502,7 +502,7 @@ based on a given iteration number in the reconstruction.
502502
503503
# Arguments
504504
- `cs::ClusterSequence`: The `ClusterSequence` object to update.
505-
- `ranks`: The ranks of the original clusters, that are inherited by peudojets
505+
- `ranks`: The ranks of the original clusters, that are inherited by pseudojets
506506
during the reconstruction process.
507507
- `iteration=0`: The iteration number to consider for updating the
508508
reconstruction state (0 represents the initial state).

src/GenericAlgo.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ these methods are already predefined in the `JetReconstruction` namespace.
3333
The `recombine` argument is the function used to merge pairs of particles. The
3434
default is simply `+(jet1,jet2)`, i.e. 4-momenta addition or the *E*-scheme.
3535
36-
## Consitency of `p`, `algorithm` and `R` arguments
36+
## Consistency of `p`, `algorithm` and `R` arguments
3737
If an algorithm is explicitly specified the `p` value should be consistent with
3838
it or `nothing`. If the algorithm is one where `p` can vary, then it has to be
39-
given, along with the algorithm.``
39+
given, along with the algorithm.
4040
4141
If the `p` parameter is passed and `algorithm=nothing`, then pp-type
4242
reconstruction is implied (i.e., AntiKt, CA, Kt or GenKt will be used,
@@ -66,7 +66,7 @@ function jet_reconstruct(particles; p::Union{Real, Nothing} = -1, R = 1.0,
6666
if (algorithm === nothing) || is_pp(algorithm)
6767
# We assume a pp reconstruction
6868
if strategy == RecoStrategy.Best
69-
# The breakpoint of ~80 is determined empirically on e+e- -> H and 0.5TeV pp -> 5GeV jets
69+
# The breakpoint of ~80 is determined empirically on e+e- -> H and 0.5 TeV pp -> 5 GeV jets
7070
alg = length(particles) > 80 ? tiled_jet_reconstruct : plain_jet_reconstruct
7171
elseif strategy == RecoStrategy.N2Plain
7272
alg = plain_jet_reconstruct

src/HepMC3.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Particle{T}() where {T} = Particle(LorentzVector{T}(0.0, 0.0, 0.0, 0.0), 0, 0, 0
7171
""" Read a [HepMC3](https://doi.org/10.1016/j.cpc.2020.107310) ascii file.
7272
7373
Each event is passed to the provided function f as a vector of Particles. A
74-
maximum number of events to read (value -1 to read all availble events) and
74+
maximum number of events to read (value -1 to read all available events) and
7575
a number of events to skip at the beginning of the file can be provided.
7676
"""
7777

0 commit comments

Comments
 (0)