You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanid="example-script"></span><h1>Example script and modules<aclass="headerlink" href="#example-script-and-modules" title="Link to this heading"></a></h1>
121
+
<p>A few example scripts and modules are found here: <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples">examples</a>.</p>
122
+
<p>The script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_fast/Modules/main.py">examples/examples_fast/Modules/main.py</a> is a quick test run not requiring any input files. It assumes a single hot region with a uniform temperature using the default blackbody atmosphere extension and a fake instrument matrix. The same directory also includes <codeclass="docutils literal notranslate"><spanclass="pre">main_IS_likelihood.py</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">main_IS_prior.py</span></code> scripts which are needed for the <aclass="reference internal" href="Importance_sampling.html"><spanclass="doc">Importance sampling</span></a> tutorial.</p>
123
+
<p>Second script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_BB.py">examples/examples_modeling_tutorial/TestRun_BB.py</a> is a test run, which is similar to the <aclass="reference internal" href="Modeling.html"><spanclass="doc">Modeling</span></a> tutorial, requiring the same input files as in the corresponding tutorial and using the default blackbody atmosphere extension.</p>
124
+
<p>Third script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_Num.py">examples/examples_modeling_tutorial/TestRun_Num.py</a> is also a test run, which is similar to the <aclass="reference internal" href="Modeling.html"><spanclass="doc">Modeling</span></a> tutorial, except using the numerical atmosphere extension.</p>
125
+
<p>Fourth script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_NumBeam.py">examples/examples_modeling_tutorial/TestRun_NumBeam.py</a> is a similar test run as the previous, except using a numerical atmosphere extension with extra parameters allowing deviations to the atmospheric beaming pattern.</p>
126
+
<p>Fifth script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_Pol.py">examples/examples_modeling_tutorial/TestRun_Pol.py</a> is an example script for producing polarized pulses in X-PSI using a simple analytical model for the atmosphere emission.</p>
127
+
<p>Sixth script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_PolNum_split_1spot.py">examples/examples_modeling_tutorial/TestRun_PolNum_split_1spot.py</a> is an example script for producing polarized pulses in X-PSI using a numerical atmosphere model with 3+2 dimensional interpolation.</p>
128
+
<p>Seventh script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_PolNum_split_inference.py">examples/examples_modeling_tutorial/TestRun_PolNum_split_inference.py</a> is a preliminary example script for producing and analyzing polarized pulses in X-PSI using a numerical atmosphere model with 3+2 dimensional interpolation and ST+PDT spot model.</p>
129
+
<p>Eigth script called <aclass="reference external" href="https://github.com/xpsi-group/xpsi/tree/main/examples/examples_modeling_tutorial/TestRun_AMXP.py">examples/examples_modeling_tutorial/TestRun_AMXP.py</a> is an example script of an Accreting Millisecond Pulsar with accretion disk implemented through the CustomPhotosphere.py, and 3+2 dimensional interpolation. Note that TestRun_PolNum_split_1spot similarly includes an accretion disk implementation at the end, but there it is a background signal. The results are equivalent but the implementation in this example here is faster and thus recommended for sampling.</p>
0 commit comments