Skip to content

Commit

Permalink
deploy: 8e1dc05
Browse files Browse the repository at this point in the history
  • Loading branch information
alisterburt committed Jan 16, 2024
1 parent 0b31cf0 commit 72452db
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/merging/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ <h1 id="merging-data-across-tables">merging data across tables</h1>
In pandas, this is implemented as
<a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.merge.html"><code>DataFrame.merge()</code></a>.</p>
<div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">starfile</span>

<span class="n">star</span> <span class="o">=</span> <span class="n">starfile</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="s1">&#39;particles.star&#39;</span><span class="p">)</span>
<span class="n">df</span> <span class="o">=</span> <span class="n">star</span><span class="p">[</span><span class="s1">&#39;particles&#39;</span><span class="p">]</span><span class="o">.</span><span class="n">merge</span><span class="p">(</span><span class="n">star</span><span class="p">[</span><span class="s1">&#39;optics&#39;</span><span class="p">],</span> <span class="n">on</span><span class="o">=</span><span class="s1">&#39;rlnOpticsGroup&#39;</span><span class="p">)</span>
</code></pre></div>
Expand Down
1 change: 0 additions & 1 deletion examples/multi_block/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ <h2 id="writing">Writing</h2>
<p>Writing a file containing multiple data blocks is similar, simply pass a dictionary of entries.</p>
<div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">starfile</span>


<span class="n">starfile</span><span class="o">.</span><span class="n">write</span><span class="p">(</span>
<span class="p">{</span><span class="s1">&#39;optics&#39;</span><span class="p">:</span> <span class="n">optics_df</span><span class="p">,</span> <span class="s1">&#39;particles&#39;</span><span class="p">:</span> <span class="n">particle_df</span><span class="p">},</span> <span class="s1">&#39;new_file.star&#39;</span>
<span class="p">)</span>
Expand Down
1 change: 1 addition & 0 deletions examples/single_block/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ <h1 id="single-data-block-example">single data block example</h1>
</code></pre></div>
<p>Read the file</p>
<div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">starfile</span>

<span class="n">df</span> <span class="o">=</span> <span class="n">starfile</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="s1">&#39;particles.star&#39;</span><span class="p">)</span>
</code></pre></div>
<p>Interact with the data</p>
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ <h1 id="quickstart">Quickstart</h1>
</code></pre></div>
<p>Read the file</p>
<div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">starfile</span>

<span class="n">df</span> <span class="o">=</span> <span class="n">starfile</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="s1">&#39;particles.star&#39;</span><span class="p">)</span>
</code></pre></div>
<p>Interact with the data</p>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://teamtomo.org/starfile/</loc>
<lastmod>2024-01-15</lastmod>
<lastmod>2024-01-16</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://teamtomo.org/starfile/examples/merging/</loc>
<lastmod>2024-01-15</lastmod>
<lastmod>2024-01-16</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://teamtomo.org/starfile/examples/multi_block/</loc>
<lastmod>2024-01-15</lastmod>
<lastmod>2024-01-16</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://teamtomo.org/starfile/examples/single_block/</loc>
<lastmod>2024-01-15</lastmod>
<lastmod>2024-01-16</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 72452db

Please sign in to comment.