Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | The filename (including its full or relative path) of an instrument definition file. Allowed extensions: [‘.xml’] |
NumAzimuth | Input | number | 100 | Steps in azimuthal angles |
NumZenith | Input | number | 50 | Steps in zenith angles |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | An output workspace. |
Algorithm to test ray tracer by spraying evenly spaced rays around. Only for debugging / testing.
Example - MARI
import os
inst_dir = config["instrumentDefinition.directory"]
inst_file_path = os.path.join(inst_dir,"MARI_Definition.xml")
ws=RayTracerTester(inst_file_path)
Categories: Algorithms | Utility | Development