McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: Test_lib_read_table

[ Identification | Description | Examples | Input parameters | Links ]

The Test_lib_read_table Instrument

Unit test of common/lib/share/read_table-lib (Table_Value, Table_Value2d, Table_Rebin, Table_Read) on tables built in memory. Covers the bracket search for constant-step and monotonic tables, both increasing and decreasing, the 1-row vector case of Table_Value2d, and that Table_Read of a missing file leaves an empty table. Also checks that Table_Read_Handle and Table_Free leave no heap block behind for a file with comment and '***' lines. The Arm absorbs every particle if any check failed, so the PSD intensity is Ncount on success and 0 on failure.

Identification

  • Site: libtest
  • Author:
  • Origin:
  • Date:

Description

Tests: mccode-dev/McCode#1968, #2565, #3016, #3017, #3099

Examples

(Test cases in bold)
  • Test: Ncount=1000 Detector: PSD_I=1000

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
Ncount1Number of particles1000

Links


[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos