# The `Test_KDSource` Instrument

*McStas: Simple test instrument for KDSource*

## Identification

- **Site:** Tests_MCPL_etc
- **Author:** Peter Willendrup
- **Origin:** ESS
- **Date:** April 2026

## Description

```text
Simple test instrument for KDSource, derived from the original KDS_resampled
that was shipped / generated by Jupyter notebook Test_McStas_MPI.ipynb.

Uses an KDSource XML description of bandwidths to apply when resampling the
base MCPL input from samples.mcpl.gz
```

## Input parameters

Parameters in **boldface** are required; the others are optional.

| Name | Unit | Description | Default |
|------|------|-------------|---------|
| nloop | 1 | Number of reusages of KDSource input | 1 |

## Links

- [Source code](Test_KDSource.instr) for `Test_KDSource.instr`.

---
