From 3a243ecef764cad7a24c96a1dd26b4d7322d053b Mon Sep 17 00:00:00 2001 From: Kazunori Akiyama Date: Wed, 16 Oct 2024 14:05:09 -0400 Subject: [PATCH] fix typos --- docs/src/tutorials/diffractive.md | 6 +++--- src/scatteringmodels/abstractscatteringmodel.jl | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/src/tutorials/diffractive.md b/docs/src/tutorials/diffractive.md index e29394a..e40eb0f 100644 --- a/docs/src/tutorials/diffractive.md +++ b/docs/src/tutorials/diffractive.md @@ -105,15 +105,15 @@ f ``` ## A quick shortcut -The above tutorial is intentionally written in a low level. There is [emsembleaverage](@ref) method to do a quick shortcut by bypassing the kernel generation. +The above tutorial is intentionally written in a low level. There is [ensembleaaverage](@ref) method to do a quick shortcut by bypassing the kernel generation. ```@example 1 # scatter the image -im_ea_2 = emsembleaverage(sm, im) +im_ea_2 = ensembleaaverage(sm, im) # Plot source image imageviz(im_ea_2, size=(600, 500), colormap=:afmhot) ``` Although this is handy, it may have an extra overhead to initialize `skm` which may slow down highly iterative processes. -[emsembleaverage](@ref) method also supports more general skymodels in `ComradeBase.AbstractModel` as an input instead of the image model. +[ensembleaaverage](@ref) method also supports more general skymodels in `ComradeBase.AbstractModel` as an input instead of the image model. diff --git a/src/scatteringmodels/abstractscatteringmodel.jl b/src/scatteringmodels/abstractscatteringmodel.jl index 1fb4acd..d9425e2 100644 --- a/src/scatteringmodels/abstractscatteringmodel.jl +++ b/src/scatteringmodels/abstractscatteringmodel.jl @@ -7,7 +7,7 @@ export AbstractScatteringModel #export Dϕ_exact export visibility_point_approx export visibility_point_exact -export emsembleaverage +export ensembleaverage """ @@ -156,16 +156,16 @@ using the exact formula of the phase structure function. end """ - emsembleaverage(sm::AbstractScatteringModel, skymodel::AbstractModel, νmodel) + ensembleaverage(sm::AbstractScatteringModel, skymodel::AbstractModel, νmodel) """ -@inline function emsembleaverage(sm::AbstractScatteringModel, skymodel::AbstractModel, νmodel=c_cgs) +@inline function ensembleaverage(sm::AbstractScatteringModel, skymodel::AbstractModel, νmodel=c_cgs) return convolved(skymodel, kernelmodel(sm, νref=νmodel)) end """ - emsembleaverage(sm::AbstractScatteringModel, imap::IntensityMap; νref=c_cgs) + ensembleaverage(sm::AbstractScatteringModel, imap::IntensityMap; νref=c_cgs) """ -@inline function emsembleaverage(sm::AbstractScatteringModel, imap::IntensityMap; νref=c_cgs) +@inline function ensembleaverage(sm::AbstractScatteringModel, imap::IntensityMap; νref=c_cgs) # check if imap has a frequncy or time dimension if ndims(imap) > 2 throw("The funciton doesn't support multi-dimensional images")