
DMSC School Lecture Materials#
Lecture material repository for teachers at DMSC School.
Course Directories#
There are 6 courses in the summer school. Each course has its own directory for collecting materials in this repository.
1-python
3-mcstas
4-reduction
5-analysis
6-scicat
Prerequisites#
Install pixi.
Install pre-commit or prek
Install hooks:
Either
pre-commit installOr
prek install
Jupyter notebooks#
Many of materials are written in notebooks and are published online by jupyter-book.
Here are some tips and tools for writing jupyter notebooks for courses.
Clearing output#
Command to clear outputs of all jupyter notebooks in the current directory.
pre-commit run nbstripout -a
or
prek run nbstripout -a
Building the book#
pixi run build
How to update the student notebooks#
We keep student notebooks (without solutions) in ess-dmsc-dram/dmsc-school-notebooks.
To update these, navigate to the Update notebooks section in the Actions tab in that repository and simply run the workflow.
This will create a PR in the notebooks repository with updates to all notebooks.
Managing dependencies#
To add, remove, restrict dependencies, modify pixi.toml, run pixi lock and commit both pixi.toml and pixi.lock.
Update Guides#
There are guides/instructions written in latex under guides/ folder.
Remember to update the guides each year to hand it to the participants.
The day1-student-guide is for the first day to set up the participants virtual environments,
i.e. download the workbooks and make a symlink to the home directory in VISA.
daily-scicat-exercise is for data catalouging exercises at the end of each McStas simulation, data reduction and data analysis course.
Checklist for next time
Update the year in the guide.
Update the screenshots/instructions if interface has changed.
Upload it to the accessible location for participants and teachers.