Skip to content

Commit

Permalink
deploy: bfa4a3b
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunHuangPhy committed Oct 23, 2024
0 parents commit 9030688
Show file tree
Hide file tree
Showing 150 changed files with 16,304 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 292c2c4c18973b0c51527665131fea15
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/BayesianSampler.doctree
Binary file not shown.
Binary file added .doctrees/Cornerplot.doctree
Binary file not shown.
Binary file added .doctrees/EoS_import.doctree
Binary file not shown.
Binary file added .doctrees/Likelihood.doctree
Binary file not shown.
Binary file added .doctrees/RMF_EOS.doctree
Binary file not shown.
Binary file added .doctrees/TOV_solver.doctree
Binary file not shown.
Binary file added .doctrees/crust_EOS.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/fastRMF_EoS.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/intro.doctree
Binary file not shown.
Binary file added .doctrees/main.doctree
Binary file not shown.
202 changes: 202 additions & 0 deletions .doctrees/nbsphinx/test_EOSgenerators.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/test_EOSgenerators_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
401 changes: 401 additions & 0 deletions .doctrees/nbsphinx/test_Inference.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/test_Inference_11_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
260 changes: 260 additions & 0 deletions .doctrees/nbsphinx/test_TOVsolver.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/test_TOVsolver_1_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/test_TOVsolver_3_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/test_TOVsolver_5_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/test_TOVsolver_7_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/prior.doctree
Binary file not shown.
Binary file added .doctrees/speed_of_sound.doctree
Binary file not shown.
Binary file added .doctrees/test_EOSgenerators.doctree
Binary file not shown.
Binary file added .doctrees/test_Inference.doctree
Binary file not shown.
Binary file added .doctrees/test_TOVsolver.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
199 changes: 199 additions & 0 deletions BayesianSampler.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="./">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bayesian Inference smapler setup module &mdash; CompactObject 1.9.1 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=60b3a732"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Prior Definition Module" href="prior.html" />
<link rel="prev" title="Calculate Speed of Sound" href="speed_of_sound.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="index.html" class="icon icon-home">
CompactObject
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Illustration Notebooks</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="test_EOSgenerators.html">Equation of State Generators illustration notebook</a></li>
<li class="toctree-l1"><a class="reference internal" href="test_TOVsolver.html">TOV solver sampled notebook</a></li>
<li class="toctree-l1"><a class="reference internal" href="test_Inference.html">Bayesian inference analysis notebook</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">EOS generators module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="crust_EOS.html">Crust Equation of state interpolation</a></li>
<li class="toctree-l1"><a class="reference internal" href="RMF_EOS.html">RMF EOS solver</a></li>
<li class="toctree-l1"><a class="reference internal" href="fastRMF_EoS.html">RMF EOS solver (numba speed up version)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">TOV solver module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="EoS_import.html">Import Equation of State</a></li>
<li class="toctree-l1"><a class="reference internal" href="main.html">Main functions</a></li>
<li class="toctree-l1"><a class="reference internal" href="TOV_solver.html">Solve TOV Equation</a></li>
<li class="toctree-l1"><a class="reference internal" href="speed_of_sound.html">Calculate Speed of Sound</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Bayesian Inference module</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Bayesian Inference smapler setup module</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#InferenceWorkflow.BayesianSampler.UltranestSampler"><code class="docutils literal notranslate"><span class="pre">UltranestSampler()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#InferenceWorkflow.BayesianSampler.UltranestSamplerResume"><code class="docutils literal notranslate"><span class="pre">UltranestSamplerResume()</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="prior.html">Prior Definition Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="Likelihood.html">Likelihood function definition module</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Postprocessing module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Cornerplot.html">Postprocessing module: Cornerplot</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">CompactObject</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Bayesian Inference smapler setup module</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/BayesianSampler.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="bayesian-inference-smapler-setup-module">
<span id="bayesian-sampler"></span><h1>Bayesian Inference smapler setup module<a class="headerlink" href="#bayesian-inference-smapler-setup-module" title="Link to this heading"></a></h1>
<p>Functions to start run Bayesian inference by calling UltraNest package</p>
<dl class="py function" id="module-InferenceWorkflow.BayesianSampler">
<dt class="sig sig-object py" id="InferenceWorkflow.BayesianSampler.UltranestSampler">
<span class="sig-prename descclassname"><span class="pre">InferenceWorkflow.BayesianSampler.</span></span><span class="sig-name descname"><span class="pre">UltranestSampler</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parameters</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">likelihood</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">prior</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">step</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">live_points</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_calls</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/InferenceWorkflow/BayesianSampler.html#UltranestSampler"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#InferenceWorkflow.BayesianSampler.UltranestSampler" title="Link to this definition"></a></dt>
<dd><p>UltraNest based nested sampler by given likelihood prior, and parameters.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>parameters</strong> (<em>array</em>) – parameters array that want to be constrained.</p></li>
<li><p><strong>likelihood</strong> (<em>array</em>) – theta as input. likelihood function defined by user.</p></li>
<li><p><strong>prior</strong> (<em>array</em>) – cube as input, prior function defined by user. please check our test_inference.ipynb</p></li>
<li><p><strong>prior.</strong> (<em>to check how to define likelihood and</em>)</p></li>
<li><p><strong>step</strong> (<em>int</em>) – as a step sampler, define this inference want to devided to how many steps.</p></li>
<li><p><strong>live_points</strong> (<em>int</em>) – define how many live points will be used to explore the whole</p></li>
<li><p><strong>space.</strong> (<em>parameters</em>)</p></li>
<li><p><strong>max_ncalls</strong> (<em>int</em>) – define after how many steps the sampler will stop work.</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>equal weighted samples of whole posteior parameter space,
this run will generate a dirctory as ‘output’, please check the run# folder, and the
chain dirctory, there is a ‘equal_weighted_samples’ file, that is same with flat_samples here.
It will be easier to check if you are using clusters to do this inference.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>flat_samples (array)</p>
</dd>
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="InferenceWorkflow.BayesianSampler.UltranestSamplerResume">
<span class="sig-prename descclassname"><span class="pre">InferenceWorkflow.BayesianSampler.</span></span><span class="sig-name descname"><span class="pre">UltranestSamplerResume</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parameters</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">likelihood</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">prior</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nsteps</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">live_points</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_calls</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/InferenceWorkflow/BayesianSampler.html#UltranestSamplerResume"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#InferenceWorkflow.BayesianSampler.UltranestSamplerResume" title="Link to this definition"></a></dt>
<dd><p>UltraNest based nested sampler by given likelihood prior, and parameters. (resume true verion
could restart you run from your previous stopped results)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>parameters</strong> (<em>array</em>) – parameters array that want to be constrained.</p></li>
<li><p><strong>likelihood</strong> (<em>array</em>) – theta as input. likelihood function defined by user.</p></li>
<li><p><strong>prior</strong> (<em>array</em>) – cube as input, prior function defined by user. please check our test_inference.ipynb</p></li>
<li><p><strong>prior.</strong> (<em>to check how to define likelihood and</em>)</p></li>
<li><p><strong>step</strong> (<em>int</em>) – as a step sampler, define this inference want to devided to how many steps.</p></li>
<li><p><strong>live_points</strong> (<em>int</em>) – define how many live points will be used to explore the whole</p></li>
<li><p><strong>space.</strong> (<em>parameters</em>)</p></li>
<li><p><strong>max_ncalls</strong> (<em>int</em>) – define after how many steps the sampler will stop work.</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>equal weighted samples of whole posteior parameter space,
this run will generate a dirctory as ‘output’, please check the run# folder, and the
chain dirctory, there is a ‘equal_weighted_samples’ file, that is same with flat_samples here.
It will be easier to check if you are using clusters to do this inference.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>flat_samples (array)</p>
</dd>
</dl>
</dd></dl>

</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="speed_of_sound.html" class="btn btn-neutral float-left" title="Calculate Speed of Sound" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="prior.html" class="btn btn-neutral float-right" title="Prior Definition Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, Chun Huang, Nicole Obsborn, Nathan Whitsett.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
134 changes: 134 additions & 0 deletions Cornerplot.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="./">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Postprocessing module: Cornerplot &mdash; CompactObject 1.9.1 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=60b3a732"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="prev" title="Likelihood function definition module" href="Likelihood.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="index.html" class="icon icon-home">
CompactObject
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Illustration Notebooks</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="test_EOSgenerators.html">Equation of State Generators illustration notebook</a></li>
<li class="toctree-l1"><a class="reference internal" href="test_TOVsolver.html">TOV solver sampled notebook</a></li>
<li class="toctree-l1"><a class="reference internal" href="test_Inference.html">Bayesian inference analysis notebook</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">EOS generators module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="crust_EOS.html">Crust Equation of state interpolation</a></li>
<li class="toctree-l1"><a class="reference internal" href="RMF_EOS.html">RMF EOS solver</a></li>
<li class="toctree-l1"><a class="reference internal" href="fastRMF_EoS.html">RMF EOS solver (numba speed up version)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">TOV solver module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="EoS_import.html">Import Equation of State</a></li>
<li class="toctree-l1"><a class="reference internal" href="main.html">Main functions</a></li>
<li class="toctree-l1"><a class="reference internal" href="TOV_solver.html">Solve TOV Equation</a></li>
<li class="toctree-l1"><a class="reference internal" href="speed_of_sound.html">Calculate Speed of Sound</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Bayesian Inference module</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="BayesianSampler.html">Bayesian Inference smapler setup module</a></li>
<li class="toctree-l1"><a class="reference internal" href="prior.html">Prior Definition Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="Likelihood.html">Likelihood function definition module</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Postprocessing module</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Postprocessing module: Cornerplot</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">CompactObject</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Postprocessing module: Cornerplot</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/Cornerplot.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="postprocessing-module-cornerplot">
<span id="corner-plot-module"></span><h1>Postprocessing module: Cornerplot<a class="headerlink" href="#postprocessing-module-cornerplot" title="Link to this heading"></a></h1>
<p>Function to plot overlapping corner plots with input as two or three 2d posterior arrays</p>
</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="Likelihood.html" class="btn btn-neutral float-left" title="Likelihood function definition module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, Chun Huang, Nicole Obsborn, Nathan Whitsett.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 9030688

Please sign in to comment.