Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Apr 26, 2024
1 parent 2f0bbb4 commit 64de02d
Show file tree
Hide file tree
Showing 47 changed files with 283 additions and 153 deletions.
2 changes: 1 addition & 1 deletion main/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 3e2b45d03a4b4fe31376be310ccd6bf1
config: eed1028ba0994bb32efb4581467db791
tags: 645f666f9bcd5a90fca523b33c5a78b7
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,14 @@
# %%
# To be continued
# ---------------

# %%
# Appendix
# --------
#
# Print information about Python interpreter and installed packages:

print(phasorpy.versions())

# %%
# sphinx_gallery_thumbnail_number = 3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## To be continued\n\n\n"
"## To be continued\n\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Appendix\n\nPrint information about Python interpreter and installed packages:\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(phasorpy.versions())"
]
},
{
Expand Down
Binary file not shown.
Binary file modified main/_images/sphx_glr_phasorpy_components_002.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 main/_images/sphx_glr_phasorpy_components_003.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 main/_images/sphx_glr_phasorpy_components_thumb.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 main/_images/sphx_glr_phasorpy_phasor_from_lifetime_005.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 main/_images/sphx_glr_phasorpy_phasorplot_007.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 main/_images/sphx_glr_phasorpy_phasorplot_008.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 main/_images/sphx_glr_phasorpy_phasorplot_010.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 main/_images/sphx_glr_phasorpy_phasorplot_012.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 main/_images/sphx_glr_phasorpy_phasorplot_013.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 main/_images/sphx_glr_phasorpy_phasorplot_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions main/_modules/phasorpy/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ <h1>Source code for phasorpy.components</h1><div class="highlight"><pre>
<span class="n">real</span><span class="p">,</span> <span class="n">imag</span><span class="p">,</span> <span class="n">real_components</span><span class="p">,</span> <span class="n">imag_components</span>
<span class="p">)</span>
<span class="n">distances_to_first_component</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">hypot</span><span class="p">(</span>
<span class="p">(</span><span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">projected_real</span><span class="p">)</span> <span class="o">-</span> <span class="n">first_component_phasor</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span>
<span class="p">(</span><span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">projected_imag</span><span class="p">)</span> <span class="o">-</span> <span class="n">first_component_phasor</span><span class="p">[</span><span class="mi">1</span><span class="p">]),</span>
<span class="n">numpy</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span><span class="n">projected_real</span><span class="p">)</span> <span class="o">-</span> <span class="n">first_component_phasor</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
<span class="n">numpy</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span><span class="n">projected_imag</span><span class="p">)</span> <span class="o">-</span> <span class="n">first_component_phasor</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span>
<span class="p">)</span>
<span class="n">fraction_of_second_component</span> <span class="o">=</span> <span class="p">(</span>
<span class="n">distances_to_first_component</span> <span class="o">/</span> <span class="n">total_distance_between_components</span>
Expand Down
2 changes: 1 addition & 1 deletion main/_modules/phasorpy/io.html
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ <h1>Source code for phasorpy.io</h1><div class="highlight"><pre>

<span class="c1"># TODO: get spatial coordinates from scanner settings?</span>
<span class="n">metadata</span> <span class="o">=</span> <span class="n">_metadata</span><span class="p">(</span><span class="s1">&#39;QYXH&#39;</span><span class="p">[</span><span class="o">-</span><span class="n">data</span><span class="o">.</span><span class="n">ndim</span> <span class="p">:],</span> <span class="n">data</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">filename</span><span class="p">,</span> <span class="n">H</span><span class="o">=</span><span class="n">times</span><span class="p">)</span>
<span class="n">metadata</span><span class="p">[</span><span class="s1">&#39;attrs&#39;</span><span class="p">][</span><span class="s1">&#39;frequency&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mf">1e-6</span> <span class="o">/</span> <span class="p">(</span><span class="n">times</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="n">times</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
<span class="n">metadata</span><span class="p">[</span><span class="s1">&#39;attrs&#39;</span><span class="p">][</span><span class="s1">&#39;frequency&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mf">1e-6</span> <span class="o">/</span> <span class="nb">float</span><span class="p">(</span><span class="n">times</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="n">times</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
<span class="k">return</span> <span class="n">DataArray</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="o">**</span><span class="n">metadata</span><span class="p">)</span></div>


Expand Down
Loading

0 comments on commit 64de02d

Please sign in to comment.