{ "cells": [ { "cell_type": "markdown", "id": "26960bb2", "metadata": {}, "source": [ "# Introduction to Wavelength Frame Multiplication\n", "\n", "This notebook aims to explain the concept of wavelength frame multiplication (WFM),\n", "why is it used, how it works, and what results can be expected from using WFM at a neutron beamline.\n", "\n", "Much of the material presented here was inspired by / copied from the paper by\n", "[Schmakat et al. (2020)](https://www.sciencedirect.com/science/article/abs/pii/S0168900220308640),\n", "which we highly recommend to the reader, for more details on how a WFM chopper system is designed." ] }, { "cell_type": "code", "execution_count": null, "id": "4e4505fd", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "plt.ioff() # Turn of auto-showing of figures\n", "import scipp as sc\n", "import scippneutron as scn\n", "import ess.wfm as wfm\n", "\n", "# Fetch helper functions to create the figures from an external repo\n", "import requests\n", "remote_url = 'https://raw.githubusercontent.com/scipp/documentation-helpers/main/ess/techniques/wfm/introduction-to-wfm.py'\n", "local_file = 'dochelpers.py'\n", "data = requests.get(remote_url)\n", "with open(local_file, 'w') as f:\n", " f.write(str(data.content.decode()))\n", "from dochelpers import *" ] }, { "cell_type": "markdown", "id": "51753c2f", "metadata": {}, "source": [ "