McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Mailing list

Search

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Links

Report bugs (GitHub)

Code-repository (GitHub)



McXtrace: 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 mcxtrace 3.10.4


Last Modified: Fri Nov 27 20:05:00 2026
Search website mailinglist archive GitHub repos