From 2be9925306655f895737fd9a89ac1baacdb6652c Mon Sep 17 00:00:00 2001 From: fjebaker Date: Wed, 20 Sep 2023 21:34:25 +0100 Subject: [PATCH] docs: attempt to fix ci errors --- docs/src/models.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/src/models.md b/docs/src/models.md index f67624ff..f7efa567 100644 --- a/docs/src/models.md +++ b/docs/src/models.md @@ -1,9 +1,5 @@ # Models index -```@setup model_plots -using SpectralFitting -``` - Models wrapped from XSPEC implementations are prefixed with `XS_*`, whereas pure-Julia models are simply named, e.g. [`XS_PowerLaw`](@ref) in XSPEC vs [`PowerLaw`](@ref) in Julia. The available models are @@ -91,15 +87,15 @@ SpectralFitting.register_model_data To generate the unicode plot to add as a fingerprint, we use a simple function: -```@example model_plots -using UnicodePlots +```@example +using SpectralFitting, UnicodePlots function plotmodel(energy, model) flux = invokemodel(energy, model) lineplot( energy[1:end-1], flux, - title=String(SpectralFitting.model_base_name(typeof(model))), + title=String(SpectralFitting.FunctionGeneration.model_base_name(typeof(model))), xlabel="E (keV)", canvas=DotCanvas )