Skip to content

Commit

Permalink
style: julia formatter and cleanup whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Jan 23, 2025
1 parent 69831dd commit 9f4d50c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/datasets/datasets.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
abstract type AbstractDataset
Abstract type for use in fitting routines. High level representation of some underlying
data structures.
Abstract type for use in fitting routines. High level representation of some underlying
data structures.
Fitting data is considered to have an *objective* and a *domain*. As
the domain may be, for example, energy bins (high and low), or
Expand Down Expand Up @@ -87,7 +87,7 @@ make_model_domain(layout::AbstractLayout, dataset::AbstractDataset) =
error("Layout $(layout) is not implemented for $(typeof(dataset))")

"""
make_domain_variance(layout::AbstractLayout, dataset::AbstractDataset)
make_domain_variance(layout::AbstractLayout, dataset::AbstractDataset)
Make the variance vector associated with the domain.
"""
Expand All @@ -99,7 +99,7 @@ make_domain_variance(layout::AbstractLayout, dataset::AbstractDataset) =
Returns the array used as the output domain. That is, in cases where the model
input and output map to different domains, the input domain is said to be the
model domain, the input domain is said to be the model domain.
model domain, the input domain is said to be the model domain.
The distinction is mainly used for the purposes of simulating data and for
visualising data.
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/response.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO: could be Response or Redistribution : how do we track this?
# TODO: could be Response or Redistribution : how do we track this?
mutable struct ResponseMatrix{T}
matrix::SparseMatrixCSC{T,Int}
channels::Vector{Int}
Expand Down
2 changes: 1 addition & 1 deletion src/fitting/problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
`items` is a tuple or vector of lengths `n1, n2, ...`
Returns a tuple or array with same length as items, which gives the index boundaries of
Returns a tuple or array with same length as items, which gives the index boundaries of
an array with size `n1 + n2 + ...`.
"""
function _accumulated_indices(items)
Expand Down
2 changes: 1 addition & 1 deletion src/fitting/result.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function _pretty_print_result(model, u, σ, chi2)
Model: $(model)
. u : [$(ppu)]
. σᵤ : [$(ppσ)]
. χ² : $(ppx2)
. χ² : $(ppx2)
"""
end

Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ function count_error(k, σ)
p = Distributions.cdf(Distributions.Normal(), σ)
kₑ = gamma_inc_inv(k + 1, p, 1 - p)
abs(k - kₑ)
end
end

0 comments on commit 9f4d50c

Please sign in to comment.