Deprecated ‐ Define a simulation experiment - xcist/documentation GitHub Wiki

The simulation is defined in a Python script, which is the primary input to CatSim, whether running the executable or running from within Python. Sample scripts are included in the release; users can revise to create their own. We recommend to use filename Sim_name.py for all simulation experiments. The script should contain the following elements.

Step 1: Define simulation parameters in configuration files in the cfg folder.

Step 2: Initialize the simulation class and assign it the right configuration names. For example,

ct = xc.CatSim("Phantom_Sample", "Scanner_Samplegeneric", "Protocol_Sampleaxial")

Step 3: Choose a name for the simulation experiment, which will be used to write the results

ct.resultsName = "test"

Step 4: If desired, over-ride selected predefined parameters directly from within the script. For example,

ct.protocol.mA = 200
ct.protocol.enableQuantumNoise = 1

Step 5: Run the desired scans

ct.run_all()