Skip to content

Commit 2ab6e84

Browse files
Turn code into comment
1 parent 578a9ee commit 2ab6e84

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

docs/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Geant4 = "559df036-b7a0-42fd-85df-7d5dd9d70f44"
4-
LegendDataTypes = "99e09c13-5545-5ee2-bfa2-77f358fb75d8"
5-
LegendHDF5IO = "c9265ca6-b027-5446-b1a4-febfa8dd10b0"
64
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
75
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
86
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

docs/src/tutorials/geant4_ssd_lit.jl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,17 @@ plot!(CartesianPoint.(broadcast(p -> ustrip.(u"m", p), events[1:1000].pos.data))
9797

9898
# The output of `run_geant4_simulation` can be stored using the `LegendHDF5IO` package:
9999

100-
using LegendHDF5IO
101-
102-
lh5open("simulation_output.lh5", "w") do h
103-
LegendHDF5IO.writedata(h.data_store, "SimulationData", events)
104-
end
105-
106-
events_in = lh5open("simulation_output.lh5", "r") do h
107-
LegendHDF5IO.readdata(h.data_store, "SimulationData")
108-
end
100+
# ```Julia
101+
# using LegendHDF5IO
102+
#
103+
# lh5open("simulation_output.lh5", "w") do h
104+
# LegendHDF5IO.writedata(h.data_store, "SimulationData", events)
105+
# end
106+
107+
# events_in = lh5open("simulation_output.lh5", "r") do h
108+
# LegendHDF5IO.readdata(h.data_store, "SimulationData")
109+
# end
110+
# ```
109111

110112
# In order to visualize the energy spectrum of the events in a histogram, the following code can be used:
111113

0 commit comments

Comments
 (0)