Skip to content

Commit c79153e

Browse files
committed
Refactor stimulus protocol retrieval in MakieRecipes.jl for improved clarity
- Replaced direct access to the stimulus protocol with a dedicated function, enhancing code readability and maintainability. - This change supports better integration with the existing plotting functions and ensures consistent handling of stimulus data.
1 parent a9de309 commit c79153e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhysMakie/MakieRecipes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function Makie.plot!(st::StimulusTiming)
250250
return st # Return the plot object early
251251
end
252252

253-
stim_protocol = exp.HeaderDict["StimulusProtocol"]
253+
stim_protocol = getStimulusProtocol(exp)
254254

255255
# Get stimulus start and end times
256256
# Ensure these functions are available and work with stim_protocol object

0 commit comments

Comments
 (0)