From 3d1d8caae3ff0bde02b9c0639a2d9b69f1d3d276 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Sat, 25 May 2024 16:44:55 +0100
Subject: [PATCH] Make Pathway an AbstractBlock

This ensures it is recognised by Variables.
---
 src/pathways.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pathways.jl b/src/pathways.jl
index 24cd3e8..23b5c36 100644
--- a/src/pathways.jl
+++ b/src/pathways.jl
@@ -3,7 +3,7 @@ import LinearAlgebra: norm, tr
 import StaticArrays: SVector, SMatrix
 import ..Components: NoGradient, RFPulseComponent, ReadoutComponent, InstantGradient, GradientWaveform
 import ..Containers: BaseSequence, Sequence, BaseBuildingBlock, waveform, events, waveform_sequence, start_time, AlternativeBlocks
-import ..Variables: VariableType, get_pathway, variables, @defvar
+import ..Variables: VariableType, get_pathway, variables, @defvar, AbstractBlock
 
 
 """
@@ -45,7 +45,7 @@ The area under curve, q-values, and b-values are computed separately for each gr
 - [`bmat`](@ref): Net diffusion weighting due to gradients along the `Pathway` in matrix form.
 - [`bval`](@ref): Net diffusion weighting due to gradients along the `Pathway` as a single number.
 """
-struct Pathway
+struct Pathway <: AbstractBlock
     # user provided
     sequence :: Sequence
     pulse_effects :: Vector{<:Union{Symbol, Number}}
-- 
GitLab