PaNOSC-ViNYL / McStasScript

McStas API for creating and running McStas instruments from python scripting
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Missing support for "diagnostics" option when using McXtrace? #79

Open willend opened 3 months ago

willend commented 3 months ago

Hi there,

I experimented with McStasScript + McXtrace wanting to look at the stat losses throughout an instrument, but it seems this is currently not available:

Screenshot 2024-04-13 at 08 55 16

I will experiment with a little "monkey-patching" the hardcoded restore_neutron -> restore_xray in the code and see where that gets us.

willend commented 3 months ago

Yup, this helps/works. Screenshot 2024-04-13 at 09 00 32

I might add a PR later that introduces a switch in the right spot.

(P.s.: The high jump toward the end makes sense - a SPLIT has been inserted...)