Skip to content

Commit

Permalink
docs and other non-code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekatz04 committed Aug 20, 2024
1 parent 72e6175 commit 1c1b5c3
Show file tree
Hide file tree
Showing 48 changed files with 575 additions and 2,266 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To install this software for use with NVIDIA GPUs (compute capability >2.0), you

### Installing

To install with pip (for CPUs only currently):
To install with pip (for CPUs only currently) (need GSL and lapack on your path. We recommend to do this with conda):
```
pip install bbhx
```
Expand All @@ -45,11 +45,11 @@ To install from source:
1) Clone the repository.

```
git clone https://github.com/BlackHolePerturbationToolkit/FastEMRIWaveforms.git
cd FastEMRIWaveforms
git clone https://github.com/mikekatz04/BBHx.git
cd BBHx
```

2) Installation is made easy through [install.sh](install.sh). This is a bash script that will create a conda environment, install bbhx, run tests, and install any additional packages needed for sampling or development. It will look for an `nvcc` binary, the `CUDA_HOME` variable, or the `CUDAHOME` variable. If it finds that information, it will install for CUDA as well (including installing the proper version of `cupy`). **Note**: If you already have performed installation and you are updating bbhx after a `git pull`, then run `pip install .` rather than the following command.
2) Installation is made easy through [install.sh](install.sh). This is a bash script that will create a conda environment, install bbhx, run tests, and install any additional packages needed for sampling or development. It will look for an `nvcc` binary, the `CUDA_HOME` variable, or the `CUDAHOME` variable. If it finds that information, it will install for CUDA as well (including installing the proper version of `cupy`). **Note**: If you already have performed installation and you are updating bbhx after a `git pull`, then run `python scripts/prebuild.py` followed by `pip install .` rather than the following command.

```
bash install.sh
Expand Down Expand Up @@ -97,16 +97,17 @@ git clone https://mikekatz04.github.io/BBHx.git
cd BBHx
```

3) If using GPUs, use pip to [install cupy](https://docs-cupy.chainer.org/en/stable/install.html). If you have cuda version 9.2, for example:
3) If using GPUs, use pip to [install cupy](https://docs-cupy.chainer.org/en/stable/install.html). If you have cuda version 12.1, for example:

```
pip install cupy-cuda92
pip install cupy-cuda12x
```

4) Run install. Make sure CUDA is on your PATH or `CUDAHOME` variable is set to the path to nvcc and other CUDA files.

```
python setup.py install
python scripts/prebuild.py
pip install .
```


Expand Down
9 changes: 8 additions & 1 deletion bbhx/response/fastfdresponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ class LISATDIResponse:
TDItag (str, optional): TDI channels to generate. Options are ``"XYZ"`` and
``"AET"``. If ``"XYZ"`` is not given, it will default to ``"AET"``.
(Default: ``"AET"``)
orbits (Orbits, optional): Orbit class. If ``None``, orbits is set to
:class:`EqualArmlengthOrbits`. (Default: ``None``)
rescaled (bool, optional): If ``True``, rescale TDI functions to avoid
infinities at high frequency. (Default: ``False``)
tdi2 (bool, optional): If ``True``, apply a factor of :math:`-2i \\sin{(4x)}e^{i4x})`
to tdi1 output. This is a conversion from TDI 1 to TDI 2 under the assumption of equal armlengt orbits.
(Default: ``False``)
order_fresnel_stencil (int, optional): Order of the Fresnel stencil in the
response. Currently, anything above 0 is not implemented. This is left
in for future compatibility. (Default: ``0``)
Expand All @@ -68,7 +75,7 @@ class LISATDIResponse:
def __init__(
self,
TDItag="AET",
orbits: Orbits = None,
orbits: Orbits | None = None,
rescaled: bool = False,
tdi2: bool = False,
order_fresnel_stencil=0,
Expand Down
Binary file modified docs/doctrees/README.doctree
Binary file not shown.
Binary file modified docs/doctrees/bbhx_tutorial.doctree
Binary file not shown.
Binary file modified docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/doctrees/index.doctree
Binary file not shown.
165 changes: 87 additions & 78 deletions docs/doctrees/nbsphinx/bbhx_tutorial.ipynb

Large diffs are not rendered by default.

Binary file modified docs/doctrees/nbsphinx/bbhx_tutorial_10_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_13_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_16_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_19_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_22_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_24_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_27_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_29_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_32_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_34_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_40_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_43_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_44_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 modified docs/doctrees/nbsphinx/bbhx_tutorial_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 modified docs/doctrees/user/response.doctree
Binary file not shown.
17 changes: 10 additions & 7 deletions docs/html/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ <h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Link to this
</section>
<section id="installing">
<h2>Installing<a class="headerlink" href="#installing" title="Link to this heading"></a></h2>
<p>To install with pip (for CPUs only currently):</p>
<p>To install with pip (for CPUs only currently) (need GSL and lapack on
your path. We recommend to do this with conda):</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">bbhx</span>
</pre></div>
</div>
Expand All @@ -159,8 +160,8 @@ <h2>Installing<a class="headerlink" href="#installing" title="Link to this headi
you do not have it.</p></li>
<li><p>Clone the repository.</p></li>
</ol>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">BlackHolePerturbationToolkit</span><span class="o">/</span><span class="n">FastEMRIWaveforms</span><span class="o">.</span><span class="n">git</span>
<span class="n">cd</span> <span class="n">FastEMRIWaveforms</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">mikekatz04</span><span class="o">/</span><span class="n">BBHx</span><span class="o">.</span><span class="n">git</span>
<span class="n">cd</span> <span class="n">BBHx</span>
</pre></div>
</div>
<ol class="arabic simple" start="2">
Expand All @@ -172,7 +173,8 @@ <h2>Installing<a class="headerlink" href="#installing" title="Link to this headi
it will install for CUDA as well (including installing the proper
version of <code class="docutils literal notranslate"><span class="pre">cupy</span></code>). <strong>Note</strong>: If you already have performed
installation and you are updating bbhx after a <code class="docutils literal notranslate"><span class="pre">git</span> <span class="pre">pull</span></code>, then run
<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">.</span></code> rather than the following command.</p></li>
<code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">scripts/prebuild.py</span></code> followed by <code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">.</span></code> rather
than the following command.</p></li>
</ol>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bash</span> <span class="n">install</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
Expand Down Expand Up @@ -224,16 +226,17 @@ <h2>More Customized Install (legacy)<a class="headerlink" href="#more-customized
<ol class="arabic simple" start="3">
<li><p>If using GPUs, use pip to <a class="reference external" href="https://docs-cupy.chainer.org/en/stable/install.html">install
cupy</a>. If
you have cuda version 9.2, for example:</p></li>
you have cuda version 12.1, for example:</p></li>
</ol>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">cupy</span><span class="o">-</span><span class="n">cuda92</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">cupy</span><span class="o">-</span><span class="n">cuda12x</span>
</pre></div>
</div>
<ol class="arabic simple" start="4">
<li><p>Run install. Make sure CUDA is on your PATH or <code class="docutils literal notranslate"><span class="pre">CUDAHOME</span></code> variable
is set to the path to nvcc and other CUDA files.</p></li>
</ol>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="n">setup</span><span class="o">.</span><span class="n">py</span> <span class="n">install</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="n">scripts</span><span class="o">/</span><span class="n">prebuild</span><span class="o">.</span><span class="n">py</span>
<span class="n">pip</span> <span class="n">install</span> <span class="o">.</span>
</pre></div>
</div>
<p>When installing lapack and gsl, the setup file will default to assuming
Expand Down
Binary file modified docs/html/_images/bbhx_tutorial_10_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 modified docs/html/_images/bbhx_tutorial_13_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 modified docs/html/_images/bbhx_tutorial_16_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 modified docs/html/_images/bbhx_tutorial_19_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 modified docs/html/_images/bbhx_tutorial_22_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 modified docs/html/_images/bbhx_tutorial_24_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 modified docs/html/_images/bbhx_tutorial_27_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 modified docs/html/_images/bbhx_tutorial_29_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 modified docs/html/_images/bbhx_tutorial_32_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 modified docs/html/_images/bbhx_tutorial_34_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 modified docs/html/_images/bbhx_tutorial_40_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 modified docs/html/_images/bbhx_tutorial_43_1.png
Binary file modified docs/html/_images/bbhx_tutorial_44_2.png
Binary file modified docs/html/_images/bbhx_tutorial_7_1.png
17 changes: 10 additions & 7 deletions docs/html/_sources/README.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ it as the ``CUDAHOME`` environment variable.
Installing
~~~~~~~~~~

To install with pip (for CPUs only currently):
To install with pip (for CPUs only currently) (need GSL and lapack on
your path. We recommend to do this with conda):

::

Expand All @@ -86,8 +87,8 @@ To install from source:

::

git clone https://github.com/BlackHolePerturbationToolkit/FastEMRIWaveforms.git
cd FastEMRIWaveforms
git clone https://github.com/mikekatz04/BBHx.git
cd BBHx

2) Installation is made easy through `install.sh <install.sh>`__. This
is a bash script that will create a conda environment, install bbhx,
Expand All @@ -97,7 +98,8 @@ To install from source:
it will install for CUDA as well (including installing the proper
version of ``cupy``). **Note**: If you already have performed
installation and you are updating bbhx after a ``git pull``, then run
``pip install .`` rather than the following command.
``python scripts/prebuild.py`` followed by ``pip install .`` rather
than the following command.

::

Expand Down Expand Up @@ -154,18 +156,19 @@ More Customized Install (legacy)

3) If using GPUs, use pip to `install
cupy <https://docs-cupy.chainer.org/en/stable/install.html>`__. If
you have cuda version 9.2, for example:
you have cuda version 12.1, for example:

::

pip install cupy-cuda92
pip install cupy-cuda12x

4) Run install. Make sure CUDA is on your PATH or ``CUDAHOME`` variable
is set to the path to nvcc and other CUDA files.

::

python setup.py install
python scripts/prebuild.py
pip install .

When installing lapack and gsl, the setup file will default to assuming
lib and include for both are in installed within the conda environment.
Expand Down
165 changes: 87 additions & 78 deletions docs/html/_sources/bbhx_tutorial.ipynb.txt

Large diffs are not rendered by default.

137 changes: 73 additions & 64 deletions docs/html/bbhx_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,29 +621,35 @@ <h2>The <code class="docutils literal notranslate"><span class="pre">fill</span>
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[array([[ 3.38058890e-18-1.09436679e-18j, -1.36063812e-18-3.36650411e-18j,
-3.27697582e-18+1.60878942e-18j, ...,
-3.43530029e-29-1.80550806e-29j, 1.19848650e-29-3.57844517e-29j,
2.23006336e-29-2.91388205e-29j],
[-9.88092867e-19-2.88388847e-18j, -2.74455381e-18+1.31741168e-18j,
1.62653861e-18+2.84693895e-18j, ...,
-1.97400736e-29+3.94799296e-29j, -4.10976688e-29-1.28637749e-29j,
-3.38496614e-29-2.48787469e-29j],
[ 7.29887936e-27-1.09803303e-26j, -1.09724706e-26-6.64830081e-27j,
-5.11202150e-27+1.12523708e-26j, ...,
-1.65111210e-29+3.34877145e-29j, -3.46173012e-29-1.06059222e-29j,
-2.84210804e-29-2.06049260e-29j]]), array([[ 1.25216176e-20-2.46214907e-21j, -8.87945399e-21+9.24349867e-21j,
1.61003809e-21-1.27731637e-20j, ...,
-3.53152025e-33+8.07884312e-33j, -4.35663897e-34+9.15888477e-33j,
-7.14789793e-33+6.24923057e-33j],
[ 9.28976840e-21-3.51398904e-21j, -5.69419538e-21+8.11732916e-21j,
-1.42705238e-22-9.89856348e-21j, ...,
-2.08257724e-32-3.33800772e-33j, -2.12306482e-32+4.12769150e-33j,
-1.78874051e-32-1.29367715e-32j],
[-5.54876322e-30-4.23532594e-29j, 2.94039261e-29+3.16966838e-29j,
-4.30806134e-29-7.70211333e-30j, ...,
-6.93268338e-35-2.52898780e-34j, -1.78240084e-34-2.34865974e-34j,
4.63485085e-35-3.26293837e-34j]])] [0 0] [7274 8466]
[array([[-5.17689020e-019+3.10716143e-018j,
3.09513055e-018+2.22650263e-019j,
-8.91078695e-020-3.29350134e-018j, ...,
-4.58978912e-313+2.10347829e-312j,
-1.43224624e-312-8.85778293e-314j,
-3.51814680e-313-1.48532253e-313j],
[ 3.45314862e-018+1.37751740e-019j,
-1.51344982e-019-3.58801144e-018j,
-3.63632794e-018+3.19022787e-019j, ...,
-4.53209462e-313-2.39957146e-312j,
1.53458988e-312-5.42388822e-313j,
4.33149031e-313-8.73912553e-316j],
[-6.17870919e-027+1.16246055e-026j,
1.15484747e-026+5.54204573e-027j,
3.91668155e-027-1.17353039e-026j, ...,
2.48588438e-317-1.80190682e-318j,
3.71317506e-318+1.61919047e-317j,
-4.95404564e-319+4.39307362e-318j]]), array([[-1.46307937e-20+2.98547626e-21j, 1.03837288e-20-1.07606328e-20j,
-2.04441355e-21+1.48353878e-20j, ...,
0.00000000e+00+0.00000000e+00j, 0.00000000e+00+0.00000000e+00j,
0.00000000e+00+0.00000000e+00j],
[ 6.21053657e-21+2.19538800e-22j, -5.20529795e-21+3.46087593e-21j,
2.05916800e-21-5.94272708e-21j, ...,
0.00000000e+00+0.00000000e+00j, 0.00000000e+00+0.00000000e+00j,
0.00000000e+00+0.00000000e+00j],
[ 1.55702320e-30+4.26836288e-29j, -2.62630156e-29-3.43400870e-29j,
4.21387291e-29+1.18023535e-29j, ...,
0.00000000e+00+0.00000000e+00j, 0.00000000e+00+0.00000000e+00j,
0.00000000e+00+0.00000000e+00j]])] [0 0] [7274 8466]
</pre></div></div>
</div>
<div class="nboutput docutils container">
Expand Down Expand Up @@ -722,6 +728,8 @@ <h1>Generating PhenomHM waveforms<a class="headerlink" href="#Generating-PhenomH
<span class="n">dist</span> <span class="o">=</span> <span class="mf">18e3</span> <span class="o">*</span> <span class="n">PC_SI</span> <span class="o">*</span> <span class="mf">1e6</span> <span class="c1"># 3e3 in Mpc</span>
<span class="n">t_ref</span> <span class="o">=</span> <span class="mf">0.0</span>

<span class="n">modes</span> <span class="o">=</span> <span class="p">[(</span><span class="mi">2</span><span class="p">,</span><span class="mi">2</span><span class="p">),</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="p">(</span><span class="mi">4</span><span class="p">,</span> <span class="mi">4</span><span class="p">),</span> <span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">1</span><span class="p">),</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">2</span><span class="p">),</span> <span class="p">(</span><span class="mi">4</span><span class="p">,</span> <span class="mi">3</span><span class="p">)]</span>

<span class="n">phenomhm</span><span class="p">(</span>
<span class="n">m1</span><span class="p">,</span>
<span class="n">m2</span><span class="p">,</span>
Expand All @@ -731,7 +739,8 @@ <h1>Generating PhenomHM waveforms<a class="headerlink" href="#Generating-PhenomH
<span class="n">phi_ref</span><span class="p">,</span>
<span class="n">f_ref</span><span class="p">,</span>
<span class="n">t_ref</span><span class="p">,</span>
<span class="mi">1024</span>
<span class="mi">1024</span><span class="p">,</span>
<span class="n">modes</span><span class="o">=</span><span class="n">modes</span>
<span class="p">)</span>

<span class="c1"># get important quantities</span>
Expand Down Expand Up @@ -762,7 +771,7 @@ <h1>Generating PhenomHM waveforms<a class="headerlink" href="#Generating-PhenomH
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
&lt;matplotlib.legend.Legend at 0x1477470e0&gt;
&lt;matplotlib.legend.Legend at 0x133c67590&gt;
</pre></div></div>
</div>
<div class="nboutput nblast docutils container">
Expand Down Expand Up @@ -977,9 +986,9 @@ <h1>Fast FD Response<a class="headerlink" href="#Fast-FD-Response" title="Link t
[ 2.59987559e-12 7.38281574e+04 -1.44109019e+09 0.00000000e+00
0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00
0.00000000e+00]
[ 2.59987559e-12 7.38281579e+04 -1.44109019e+09 -1.19852960e-07
-1.27213427e-07 2.47978234e-07 -6.83021491e-08 1.66473821e-18
3.80562821e-19]
[ 2.59987559e-12 7.38281579e+04 -1.44109019e+09 -0.00000000e+00
0.00000000e+00 -0.00000000e+00 0.00000000e+00 0.00000000e+00
0.00000000e+00]
</pre></div></div>
</div>
</section>
Expand Down Expand Up @@ -1066,12 +1075,12 @@ <h2>Computing the log-Likelihood for MBHBs directly against the Fourier transfor
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[ -1.08564575 -9.78986947 -0.83013822 -6.42756082 -10.39568583
-0.18793697 -0.36347664 -2.63434773 -1.16255004 -5.76160463] [905148.57604934 -692.56805835j 905106.21592967-2083.93242728j
905180.22834893 +605.58849218j 905119.1749811 -1687.25495497j
905104.06618791-2147.74363854j 905159.25598343 -288.09476858j
905175.73869922 +400.67391197j 905137.67572526-1079.22170972j
905182.58375341 +716.70964209j 905122.0191435 -1597.2112494j ]
[-0.56231853 -5.04761453 -0.43127672 -3.31971965 -5.35832732 -0.09739732
-0.18954596 -1.36331031 -0.60341271 -2.97678974] [2985.9975537 -43.59816508j 2980.25281946-130.79576009j
2987.35839562 +38.14301663j 2982.33350447-106.01475564j
2979.8858162 -134.77467888j 2986.84026896 -18.14336574j
2987.40200313 +25.23793256j 2984.84036964 -67.89881176j
2987.29428656 +45.1395584j 2982.75720639-100.37933708j]
</pre></div></div>
</div>
<p>You can also phase marginalize. This occurs in the <span class="math notranslate nohighlight">\(\langle d|h \rangle\)</span> term in the Likelihood.</p>
Expand All @@ -1091,16 +1100,16 @@ <h2>Computing the log-Likelihood for MBHBs directly against the Fourier transfor
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[[ -1.08564575 -0.820689 ]
[ -9.78986947 -7.39083137]
[ -0.83013822 -0.62756123]
[ -6.42756082 -4.85493541]
[-10.39568583 -7.84747264]
[ -0.18793697 -0.14208946]
[ -0.36347664 -0.27479797]
[ -2.63434773 -1.9909544 ]
[ -1.16255004 -0.87881025]
[ -5.76160463 -4.35235718]]
[[-0.56231853 -0.2440499 ]
[-5.04761453 -2.17884767]
[-0.43127672 -0.18777891]
[-3.31971965 -1.43603024]
[-5.35832732 -2.31208066]
[-0.09739732 -0.04229248]
[-0.18954596 -0.08294131]
[-1.36331031 -0.59113294]
[-0.60341271 -0.26239116]
[-2.97678974 -1.28822454]]
</pre></div></div>
</div>
<p>You can also return the signal-to-noise ratio: <span class="math notranslate nohighlight">\(\langle d|h \rangle / \sqrt{\langle h|h \rangle}\)</span>.</p>
Expand All @@ -1121,16 +1130,16 @@ <h2>Computing the log-Likelihood for MBHBs directly against the Fourier transfor
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[[-1.08564575e+00 9.51401198e+02]
[-9.78986947e+00 9.51392050e+02]
[-8.30138221e-01 9.51401467e+02]
[-6.42756082e+00 9.51395584e+02]
[-1.03956858e+01 9.51391414e+02]
[-1.87936968e-01 9.51402142e+02]
[-3.63476644e-01 9.51401957e+02]
[-2.63434773e+00 9.51399571e+02]
[-1.16255004e+00 9.51401118e+02]
[-5.76160463e+00 9.51396284e+02]]
[[-0.56231853 54.64508567]
[-5.04761453 54.56297366]
[-0.43127672 54.64748678]
[-3.31971965 54.59461168]
[-5.35832732 54.55728389]
[-0.09739732 54.6535931 ]
[-0.18954596 54.65190792]
[-1.36331031 54.630426 ]
[-0.60341271 54.64433873]
[-2.97678974 54.60089008]]
</pre></div></div>
</div>
</section>
Expand Down Expand Up @@ -1172,16 +1181,16 @@ <h2>Heterodyned Likelihoods<a class="headerlink" href="#Heterodyned-Likelihoods"
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[[ -1.08564575 -1.02679107]
[ -9.78986947 -9.10891033]
[ -0.83013822 -0.76848715]
[ -6.42756082 -5.98933239]
[-10.39568583 -9.67090151]
[ -0.18793697 -0.18846779]
[ -0.36347664 -0.33934525]
[ -2.63434773 -2.46732275]
[ -1.16255004 -1.07485673]
[ -5.76160463 -5.37128679]]
[[ -0.56231853 -7.54937845]
[ -5.04761453 -11.93909684]
[ -0.43127672 -7.43406949]
[ -3.31971965 -10.24724956]
[ -5.35832732 -12.2433316 ]
[ -0.09739732 -7.09670385]
[ -0.18954596 -7.19381899]
[ -1.36331031 -8.33231868]
[ -0.60341271 -7.60479998]
[ -2.97678974 -9.91150227]]
</pre></div></div>
</div>
</section>
Expand Down
165 changes: 87 additions & 78 deletions docs/html/bbhx_tutorial.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 1c1b5c3

Please sign in to comment.