Skip to content

Commit

Permalink
made slide joining script
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed May 22, 2024
1 parent a513bac commit 26e31a9
Show file tree
Hide file tree
Showing 7 changed files with 1,618 additions and 7 deletions.
4 changes: 3 additions & 1 deletion 2_nuclear_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,6 @@ slide from neutronics workshop

Nucler data libraries

endf, tendl etc
endf, tendl etc

---
6 changes: 4 additions & 2 deletions 3_prompt_responses.md → 3_prompt_response.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ style: |
</style>


Prompt responses
# Prompt responses

---

Expand Down Expand Up @@ -185,4 +185,6 @@ resulting dose in Sv per second

TODO plot dose maps for different directions
TODO plot dose maps for different libraries
TODO plot dose maps for different particles (photons and neutrons)
TODO plot dose maps for different particles (photons and neutrons)

---
6 changes: 4 additions & 2 deletions 4_delayed_response.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ style: |
</style>


Delayed responses
# Delayed response

---

Expand Down Expand Up @@ -106,4 +106,6 @@ cooling components analysis

# Burn up

# Pulsed irradiation and steady state
# Pulsed irradiation and steady state

---
4 changes: 3 additions & 1 deletion 5_simulation_software.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,6 @@ CAD to CSG convertors
Inventory simulations
Transport simulation
- r2s
- d1s
- d1s

---
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Distributed under a [permissive MIT open source license](https://github.com/fusi

# View the sides

The slides are available in [html format here](https://fusion-energy.github.io/fusion-neutronics-presentation-slides/index.html)
The slides are available in html format 👉 [here](https://fusion-energy.github.io/fusion-neutronics-presentation-slides/index.html) 👈
<!-- and [pdf format here](https://github.com/fusion-energy/fusion-neutronics-presentation-slides/files/14224293/slides.pdf) -->

Every time the main branch of the repository is updated the slides are automatically rebuilt and uploaded as html to the GitHub pages website
Expand Down
1,588 changes: 1,588 additions & 0 deletions index.html

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions join_slides.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
filenames = ['1_intro.md', '2_nuclear_data.md', '3_prompt_response.md', '4_delayed_response.md', '5_simulation_software.md']
with open('all_slides.md', 'w') as outfile:
for fname in filenames:
with open(fname) as infile:
if fname == filenames[0]:
for line in infile:
outfile.write(line)
else:
# find end of the formatting
end_of_stlye_found = False
for i, line in enumerate(infile):
if end_of_stlye_found:
outfile.write(line)
if line.startswith('</style>'):
end_of_stlye_found = True

0 comments on commit 26e31a9

Please sign in to comment.