Skip to content

Commit

Permalink
Update documentation to include updated docstrings; updates to exampl…
Browse files Browse the repository at this point in the history
…e notebooks; new extract_reinject_pulse.ipynb
  • Loading branch information
josephwkania committed Mar 8, 2024
1 parent 4591f29 commit 3e5c132
Show file tree
Hide file tree
Showing 39 changed files with 2,455 additions and 1,450 deletions.
11 changes: 6 additions & 5 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>WILL - Weighted Injector of Luminous Lighthouses<a class="headerlink" href="
</section>
<section id="overview">
<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this heading"></a></h1>
<p>There are <span class="xref myst">many</span> pulsar and FRB simulators. These lack ability to handle complex band shapes (from bandstop filters, rolloff, etc).
<p>There are <a class="reference internal" href="#other-simulators"><span class="std std-ref">many</span></a> pulsar and FRB simulators. These lack ability to handle complex band shapes (from bandstop filters, rolloff, etc).
They also try to inject pulses at a given Signal-to-Noise ratio. This signal strength methodology can lead to circular logic, in worse radio frequency
environments, the injected signal is brighter and still detectible.</p>
<p><code class="docutils literal notranslate"><span class="pre">Will</span></code> attempts the following</p>
Expand Down Expand Up @@ -100,14 +100,14 @@ <h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to
<section id="installation">
<h1>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h1>
<p>To install directly into your current Python environment</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip install git+https://github.com/josephwkania/will.git
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>git+https://github.com/josephwkania/will.git
</pre></div>
</div>
<p>If you want a local version</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/josephwkania/will.git
pip install will
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/josephwkania/will.git
pip<span class="w"> </span>install<span class="w"> </span>will

For tests <span class="sb">`</span>pip install will<span class="o">[</span>tests<span class="o">]</span><span class="sb">`</span>, <span class="k">for</span> docs <span class="sb">`</span>pip install will<span class="o">[</span>docs<span class="o">]</span><span class="sb">`</span>
For<span class="w"> </span>tests<span class="w"> </span><span class="sb">`</span>pip<span class="w"> </span>install<span class="w"> </span>will<span class="o">[</span>tests<span class="o">]</span><span class="sb">`</span>,<span class="w"> </span><span class="k">for</span><span class="w"> </span>docs<span class="w"> </span><span class="sb">`</span>pip<span class="w"> </span>install<span class="w"> </span>will<span class="o">[</span>docs<span class="o">]</span><span class="sb">`</span>
</pre></div>
</div>
</section>
Expand Down Expand Up @@ -183,6 +183,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="examples/detect_pulse.html">Detect Pulses</a></li>
<li class="toctree-l1"><a class="reference internal" href="examples/analyze_pulsar.html">Analyze a Pulsar</a></li>
<li class="toctree-l1"><a class="reference internal" href="examples/optimize.html">Use Pulse Detection to Optimize Filter Parameters</a></li>
<li class="toctree-l1"><a class="reference internal" href="examples/extract_reinject_pulse.html">Extract &amp; Re-Inject Pulse</a></li>
<li class="toctree-l1"><a class="reference internal" href="will.html">will package</a></li>
</ul>

Expand Down
Binary file added _images/examples_extract_reinject_pulse_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 _images/examples_extract_reinject_pulse_17_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 _images/examples_extract_reinject_pulse_17_4.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 _images/examples_extract_reinject_pulse_21_0.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 _images/examples_extract_reinject_pulse_24_0.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 _images/examples_extract_reinject_pulse_27_0.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 _images/examples_extract_reinject_pulse_30_0.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 _images/examples_extract_reinject_pulse_9_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 17 additions & 9 deletions _sources/examples/detect_pulse.ipynb.txt

Large diffs are not rendered by default.

676 changes: 676 additions & 0 deletions _sources/examples/extract_reinject_pulse.ipynb.txt

Large diffs are not rendered by default.

32 changes: 20 additions & 12 deletions _sources/examples/inject_pulse.ipynb.txt

Large diffs are not rendered by default.

37 changes: 26 additions & 11 deletions _sources/examples/optimize.ipynb.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Welcome to WILL's documentation!
examples/detect_pulse.ipynb
examples/analyze_pulsar.ipynb
examples/optimize.ipynb
examples/extract_reinject_pulse.ipynb
will.rst


Expand Down
8 changes: 0 additions & 8 deletions _sources/will.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ will package
Submodules
----------

will.calculate module
---------------------

.. automodule:: will.calculate
:members:
:undoc-members:
:show-inheritance:

will.create module
------------------

Expand Down
9 changes: 9 additions & 0 deletions _static/nbsphinx-broken-thumbnail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
259 changes: 259 additions & 0 deletions _static/nbsphinx-code-cells.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
/* remove conflicting styling from Sphinx themes */
div.nbinput.container div.prompt *,
div.nboutput.container div.prompt *,
div.nbinput.container div.input_area pre,
div.nboutput.container div.output_area pre,
div.nbinput.container div.input_area .highlight,
div.nboutput.container div.output_area .highlight {
border: none;
padding: 0;
margin: 0;
box-shadow: none;
}

div.nbinput.container > div[class*=highlight],
div.nboutput.container > div[class*=highlight] {
margin: 0;
}

div.nbinput.container div.prompt *,
div.nboutput.container div.prompt * {
background: none;
}

div.nboutput.container div.output_area .highlight,
div.nboutput.container div.output_area pre {
background: unset;
}

div.nboutput.container div.output_area div.highlight {
color: unset; /* override Pygments text color */
}

/* avoid gaps between output lines */
div.nboutput.container div[class*=highlight] pre {
line-height: normal;
}

/* input/output containers */
div.nbinput.container,
div.nboutput.container {
display: -webkit-flex;
display: flex;
align-items: flex-start;
margin: 0;
width: 100%;
}
@media (max-width: 540px) {
div.nbinput.container,
div.nboutput.container {
flex-direction: column;
}
}

/* input container */
div.nbinput.container {
padding-top: 5px;
}

/* last container */
div.nblast.container {
padding-bottom: 5px;
}

/* input prompt */
div.nbinput.container div.prompt pre,
/* for sphinx_immaterial theme: */
div.nbinput.container div.prompt pre > code {
color: #307FC1;
}

/* output prompt */
div.nboutput.container div.prompt pre,
/* for sphinx_immaterial theme: */
div.nboutput.container div.prompt pre > code {
color: #BF5B3D;
}

/* all prompts */
div.nbinput.container div.prompt,
div.nboutput.container div.prompt {
width: 4.5ex;
padding-top: 5px;
position: relative;
user-select: none;
}

div.nbinput.container div.prompt > div,
div.nboutput.container div.prompt > div {
position: absolute;
right: 0;
margin-right: 0.3ex;
}

@media (max-width: 540px) {
div.nbinput.container div.prompt,
div.nboutput.container div.prompt {
width: unset;
text-align: left;
padding: 0.4em;
}
div.nboutput.container div.prompt.empty {
padding: 0;
}

div.nbinput.container div.prompt > div,
div.nboutput.container div.prompt > div {
position: unset;
}
}

/* disable scrollbars and line breaks on prompts */
div.nbinput.container div.prompt pre,
div.nboutput.container div.prompt pre {
overflow: hidden;
white-space: pre;
}

/* input/output area */
div.nbinput.container div.input_area,
div.nboutput.container div.output_area {
-webkit-flex: 1;
flex: 1;
overflow: auto;
}
@media (max-width: 540px) {
div.nbinput.container div.input_area,
div.nboutput.container div.output_area {
width: 100%;
}
}

/* input area */
div.nbinput.container div.input_area {
border: 1px solid #e0e0e0;
border-radius: 2px;
/*background: #f5f5f5;*/
}

/* override MathJax center alignment in output cells */
div.nboutput.container div[class*=MathJax] {
text-align: left !important;
}

/* override sphinx.ext.imgmath center alignment in output cells */
div.nboutput.container div.math p {
text-align: left;
}

/* standard error */
div.nboutput.container div.output_area.stderr {
background: #fdd;
}

/* ANSI colors */
.ansi-black-fg { color: #3E424D; }
.ansi-black-bg { background-color: #3E424D; }
.ansi-black-intense-fg { color: #282C36; }
.ansi-black-intense-bg { background-color: #282C36; }
.ansi-red-fg { color: #E75C58; }
.ansi-red-bg { background-color: #E75C58; }
.ansi-red-intense-fg { color: #B22B31; }
.ansi-red-intense-bg { background-color: #B22B31; }
.ansi-green-fg { color: #00A250; }
.ansi-green-bg { background-color: #00A250; }
.ansi-green-intense-fg { color: #007427; }
.ansi-green-intense-bg { background-color: #007427; }
.ansi-yellow-fg { color: #DDB62B; }
.ansi-yellow-bg { background-color: #DDB62B; }
.ansi-yellow-intense-fg { color: #B27D12; }
.ansi-yellow-intense-bg { background-color: #B27D12; }
.ansi-blue-fg { color: #208FFB; }
.ansi-blue-bg { background-color: #208FFB; }
.ansi-blue-intense-fg { color: #0065CA; }
.ansi-blue-intense-bg { background-color: #0065CA; }
.ansi-magenta-fg { color: #D160C4; }
.ansi-magenta-bg { background-color: #D160C4; }
.ansi-magenta-intense-fg { color: #A03196; }
.ansi-magenta-intense-bg { background-color: #A03196; }
.ansi-cyan-fg { color: #60C6C8; }
.ansi-cyan-bg { background-color: #60C6C8; }
.ansi-cyan-intense-fg { color: #258F8F; }
.ansi-cyan-intense-bg { background-color: #258F8F; }
.ansi-white-fg { color: #C5C1B4; }
.ansi-white-bg { background-color: #C5C1B4; }
.ansi-white-intense-fg { color: #A1A6B2; }
.ansi-white-intense-bg { background-color: #A1A6B2; }

.ansi-default-inverse-fg { color: #FFFFFF; }
.ansi-default-inverse-bg { background-color: #000000; }

.ansi-bold { font-weight: bold; }
.ansi-underline { text-decoration: underline; }


div.nbinput.container div.input_area div[class*=highlight] > pre,
div.nboutput.container div.output_area div[class*=highlight] > pre,
div.nboutput.container div.output_area div[class*=highlight].math,
div.nboutput.container div.output_area.rendered_html,
div.nboutput.container div.output_area > div.output_javascript,
div.nboutput.container div.output_area:not(.rendered_html) > img{
padding: 5px;
margin: 0;
}

/* fix copybtn overflow problem in chromium (needed for 'sphinx_copybutton') */
div.nbinput.container div.input_area > div[class^='highlight'],
div.nboutput.container div.output_area > div[class^='highlight']{
overflow-y: hidden;
}

/* hide copy button on prompts for 'sphinx_copybutton' extension ... */
.prompt .copybtn,
/* ... and 'sphinx_immaterial' theme */
.prompt .md-clipboard.md-icon {
display: none;
}

/* Some additional styling taken form the Jupyter notebook CSS */
.jp-RenderedHTMLCommon table,
div.rendered_html table {
border: none;
border-collapse: collapse;
border-spacing: 0;
color: black;
font-size: 12px;
table-layout: fixed;
}
.jp-RenderedHTMLCommon thead,
div.rendered_html thead {
border-bottom: 1px solid black;
vertical-align: bottom;
}
.jp-RenderedHTMLCommon tr,
.jp-RenderedHTMLCommon th,
.jp-RenderedHTMLCommon td,
div.rendered_html tr,
div.rendered_html th,
div.rendered_html td {
text-align: right;
vertical-align: middle;
padding: 0.5em 0.5em;
line-height: normal;
white-space: normal;
max-width: none;
border: none;
}
.jp-RenderedHTMLCommon th,
div.rendered_html th {
font-weight: bold;
}
.jp-RenderedHTMLCommon tbody tr:nth-child(odd),
div.rendered_html tbody tr:nth-child(odd) {
background: #f5f5f5;
}
.jp-RenderedHTMLCommon tbody tr:hover,
div.rendered_html tbody tr:hover {
background: rgba(66, 165, 245, 0.2);
}

31 changes: 31 additions & 0 deletions _static/nbsphinx-gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.nbsphinx-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 5px;
margin-top: 1em;
margin-bottom: 1em;
}

.nbsphinx-gallery > a {
padding: 5px;
border: 1px dotted currentColor;
border-radius: 2px;
text-align: center;
}

.nbsphinx-gallery > a:hover {
border-style: solid;
}

.nbsphinx-gallery img {
max-width: 100%;
max-height: 100%;
}

.nbsphinx-gallery > a > div:first-child {
display: flex;
align-items: start;
justify-content: center;
height: 120px;
margin-bottom: 5px;
}
9 changes: 9 additions & 0 deletions _static/nbsphinx-no-thumbnail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .nt { color: #004461; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #000000 } /* Name.Variable */
.highlight .ow { color: #004461; font-weight: bold } /* Operator.Word */
.highlight .pm { color: #000000; font-weight: bold } /* Punctuation.Marker */
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
.highlight .mb { color: #990000 } /* Literal.Number.Bin */
.highlight .mf { color: #990000 } /* Literal.Number.Float */
Expand Down
Loading

0 comments on commit 3e5c132

Please sign in to comment.