<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python | Yihan Wang (王艺涵)</title><link>https://yihanwangastro.github.io/tag/python/</link><atom:link href="https://yihanwangastro.github.io/tag/python/index.xml" rel="self" type="application/rss+xml"/><description>Python</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Wed, 01 Jan 2025 00:00:00 +0000</lastBuildDate><image><url>https://yihanwangastro.github.io/media/icon_hu_5f4ae6b6057760e0.png</url><title>Python</title><link>https://yihanwangastro.github.io/tag/python/</link></image><item><title>VegasAfterglow</title><link>https://yihanwangastro.github.io/project/vegasafterglow/</link><pubDate>Wed, 01 Jan 2025 00:00:00 +0000</pubDate><guid>https://yihanwangastro.github.io/project/vegasafterglow/</guid><description>&lt;p>VegasAfterglow is a high-performance computational framework combining C++ efficiency with Python accessibility for gamma-ray burst afterglow modeling.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">$ pip install VegasAfterglow
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">$ python -c &amp;#34;import VegasAfterglow; print(&amp;#39;ready&amp;#39;)&amp;#34;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ready
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">┌─────────────────────────────────────────────┐
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ VegasAfterglow │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ Light curve generation ~ms │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ MCMC inference ✓ │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ Forward + reverse shock ✓ │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ Synchrotron self-Compton ✓ │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">│ Structured jets ✓ │
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">└─────────────────────────────────────────────┘
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Key Features:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Generates light curves in milliseconds — enabling rapid MCMC parameter inference&lt;/li>
&lt;li>Forward and reverse shock modeling across relativistic and non-relativistic regimes&lt;/li>
&lt;li>Synchrotron self-Compton emission&lt;/li>
&lt;li>Flexible jet structures with arbitrary viewing angles&lt;/li>
&lt;li>Python interface for seamless integration with standard fitting tools&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Publication:&lt;/strong> Wang, Chen &amp;amp; Zhang (2025), JHEAP&lt;/p></description></item></channel></rss>