Skip to content

Commit

Permalink
stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
balerion committed Mar 31, 2021
1 parent 4b46397 commit 85b0894
Show file tree
Hide file tree
Showing 58 changed files with 594 additions and 789 deletions.
Binary file modified docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/doctrees/example/01_readdaq.doctree
Binary file not shown.
Binary file modified docs/doctrees/example/02_parquet.doctree
Binary file not shown.
Binary file modified docs/doctrees/example/03_binning.doctree
Binary file not shown.
Binary file modified docs/doctrees/example/04_nobinning.doctree
Binary file not shown.
Binary file modified docs/doctrees/example/05_corrections.doctree
Binary file not shown.
Binary file modified docs/doctrees/example/06_fullexample.doctree
Binary file not shown.
Binary file modified docs/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/DldFlashDataframeCreator.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/DldProcessor.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/pah.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/calibration.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/diagnostics.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/io.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/masking.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/misc.doctree
Binary file not shown.
Binary file modified docs/doctrees/library/utils/vis.doctree
Binary file not shown.
Binary file modified docs/doctrees/misc/howtomaintain.doctree
Binary file not shown.
Binary file modified docs/doctrees/misc/listofterms.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/html/.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: eba9baad041dd5c812d690ed0fb15975
config: e689ffa809719ac3337c9db822b9225c
tags: 645f666f9bcd5a90fca523b33c5a78b7
36 changes: 13 additions & 23 deletions docs/html/_modules/index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@


<!DOCTYPE html>
<html class="writer-html5" lang="English" >
<!--[if IE 8]><html class="no-js lt-ie9" lang="English" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="English" > <!--<![endif]-->
<head>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Overview: module code &mdash; hextof-processor 1.0.3 documentation</title>
<title>Overview: module code &mdash; hextof-processor 1.0.4 documentation</title>



<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />







<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../_static/js/modernizr.min.js"></script>


<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
Expand All @@ -35,6 +30,10 @@
<script type="text/javascript" src="../_static/js/theme.js"></script>




<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head>
Expand All @@ -50,7 +49,7 @@



<a href="../index.html" class="icon icon-home" alt="Documentation Home"> hextof-processor
<a href="../index.html" class="icon icon-home"> hextof-processor



Expand All @@ -60,7 +59,7 @@


<div class="version">
1.0.3
1.0.4
</div>


Expand All @@ -77,7 +76,6 @@

</div>


<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">


Expand Down Expand Up @@ -118,7 +116,6 @@


</div>

</div>
</nav>

Expand Down Expand Up @@ -157,7 +154,7 @@

<ul class="wy-breadcrumbs">

<li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
<li><a href="../index.html">Docs</a> &raquo;</li>

<li>Overview: module code</li>

Expand Down Expand Up @@ -195,19 +192,11 @@ <h1>All modules for which code is available</h1>

<div role="contentinfo">
<p>

&copy; Copyright 2018-2020, momentoscope team

</p>
</div>



Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a

<a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a>

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

</footer>

Expand All @@ -219,6 +208,7 @@ <h1>All modules for which code is available</h1>
</div>



<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
Expand Down
63 changes: 31 additions & 32 deletions docs/html/_modules/processor/DldFlashDataframeCreator.html

Large diffs are not rendered by default.

180 changes: 83 additions & 97 deletions docs/html/_modules/processor/DldProcessor.html

Large diffs are not rendered by default.

65 changes: 41 additions & 24 deletions docs/html/_modules/processor/pah.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@


<!DOCTYPE html>
<html class="writer-html5" lang="English" >
<!--[if IE 8]><html class="no-js lt-ie9" lang="English" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="English" > <!--<![endif]-->
<head>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>processor.pah &mdash; hextof-processor 1.0.3 documentation</title>
<title>processor.pah &mdash; hextof-processor 1.0.4 documentation</title>



<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />







<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../_static/js/modernizr.min.js"></script>


<script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand All @@ -35,6 +30,10 @@
<script type="text/javascript" src="../../_static/js/theme.js"></script>




<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
</head>
Expand All @@ -50,7 +49,7 @@



<a href="../../index.html" class="icon icon-home" alt="Documentation Home"> hextof-processor
<a href="../../index.html" class="icon icon-home"> hextof-processor



Expand All @@ -60,7 +59,7 @@


<div class="version">
1.0.3
1.0.4
</div>


Expand All @@ -77,7 +76,6 @@

</div>


<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">


Expand Down Expand Up @@ -118,7 +116,6 @@


</div>

</div>
</nav>

Expand Down Expand Up @@ -157,7 +154,7 @@

<ul class="wy-breadcrumbs">

<li><a href="../../index.html" class="icon icon-home"></a> &raquo;</li>
<li><a href="../../index.html">Docs</a> &raquo;</li>

<li><a href="../index.html">Module code</a> &raquo;</li>

Expand Down Expand Up @@ -185,6 +182,8 @@ <h1>Source code for processor.pah</h1><div class="highlight"><pre>

<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">h5py</span>


<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">camp.pah.beamtimedaqaccess</span> <span class="kn">import</span> <span class="n">BeamtimeDaqAccess</span> <span class="k">as</span> <span class="n">_BeamtimeDaqAccess</span><span class="p">,</span> <span class="n">H5FileDataAccess</span> <span class="k">as</span> <span class="n">_H5FileDataAccess</span><span class="p">,</span> \
Expand Down Expand Up @@ -260,7 +259,32 @@ <h1>Source code for processor.pah</h1><div class="highlight"><pre>
<span class="ow">or</span> <span class="n">channelName</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s1">&#39;/Photon Diagnostic/&#39;</span><span class="p">)</span> \
<span class="ow">or</span> <span class="n">channelName</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s1">&#39;/Electron Diagnostic/&#39;</span><span class="p">)</span> \
<span class="ow">or</span> <span class="n">channelName</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s1">&#39;/Beamlines/&#39;</span><span class="p">)</span> \
<span class="ow">or</span> <span class="n">channelName</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s1">&#39;/Timing/&#39;</span><span class="p">)</span> <span class="c1"># &lt;--for datasets before 08-2018</span></div></div>
<span class="ow">or</span> <span class="n">channelName</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s1">&#39;/Timing/&#39;</span><span class="p">)</span> <span class="c1"># &lt;--for datasets before 08-2018</span></div>

<span class="k">def</span> <span class="nf">filledInDesiredDataSets</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sortedDesiredDataSets</span><span class="p">):</span>
<span class="k">assert</span> <span class="n">sortedDesiredDataSets</span><span class="p">,</span> <span class="s2">&quot;Precond.: desiredDataSets not empty&quot;</span>

<span class="c1"># finding largest datumsShape</span>
<span class="n">largestShape</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">for</span> <span class="n">currentDataset</span> <span class="ow">in</span> <span class="n">sortedDesiredDataSets</span><span class="p">:</span>
<span class="k">with</span> <span class="n">h5py</span><span class="o">.</span><span class="n">File</span><span class="p">(</span><span class="n">currentDataset</span><span class="o">.</span><span class="n">fileMeta</span><span class="o">.</span><span class="n">fileName</span><span class="p">(),</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">h5file</span><span class="p">:</span>
<span class="k">if</span> <span class="n">h5file</span><span class="p">[</span><span class="n">currentDataset</span><span class="o">.</span><span class="n">channelName</span><span class="p">]</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">&gt;</span> <span class="n">largestShape</span><span class="p">:</span>
<span class="n">largestDataset</span> <span class="o">=</span> <span class="n">currentDataset</span>
<span class="n">largestShape</span> <span class="o">=</span> <span class="n">h5file</span><span class="p">[</span><span class="n">currentDataset</span><span class="o">.</span><span class="n">channelName</span><span class="p">]</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
<span class="n">largestDataset</span><span class="o">.</span><span class="n">desiredDatasetInitializedFromFile</span><span class="p">()</span>

<span class="c1"># all the result parts need to be the same shape. Therefore, they need to be the largest possible</span>
<span class="n">result</span><span class="o">=</span> <span class="p">[</span><span class="n">sortedDesiredDataSets</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">desiredDatasetInitializedFromSample</span><span class="p">(</span><span class="n">largestDataset</span><span class="p">)]</span>
<span class="n">preceedingDataset</span><span class="o">=</span> <span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>

<span class="k">for</span> <span class="n">currentDataset</span> <span class="ow">in</span> <span class="n">sortedDesiredDataSets</span><span class="p">[</span><span class="mi">1</span><span class="p">:]:</span>
<span class="k">if</span> <span class="n">currentDataset</span><span class="o">.</span><span class="n">pulseIdInterval</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="n">preceedingDataset</span><span class="o">.</span><span class="n">pulseIdInterval</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">nanDataSet</span><span class="o">=</span> <span class="n">_H5FileDataAccess</span><span class="o">.</span><span class="n">NaNDesiredDataSet</span><span class="p">((</span><span class="n">preceedingDataset</span><span class="o">.</span><span class="n">pulseIdInterval</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">currentDataset</span><span class="o">.</span><span class="n">pulseIdInterval</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span> <span class="n">preceedingDataset</span><span class="p">)</span>
<span class="n">result</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">nanDataSet</span><span class="p">)</span>
<span class="n">result</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">currentDataset</span><span class="o">.</span><span class="n">desiredDatasetInitializedFromSample</span><span class="p">(</span><span class="n">preceedingDataset</span><span class="p">))</span>
<span class="n">preceedingDataset</span><span class="o">=</span> <span class="n">currentDataset</span>
<span class="k">assert</span> <span class="bp">self</span><span class="o">.</span><span class="n">hasNoGapsBetween</span><span class="p">(</span><span class="n">result</span><span class="p">),</span> <span class="s2">&quot;Postcond.: No gaps between file chunks.&quot;</span>
<span class="k">return</span> <span class="n">result</span></div>


<div class="viewcode-block" id="H5FileManager"><a class="viewcode-back" href="../../library/pah.html#processor.pah.H5FileManager">[docs]</a><span class="k">class</span> <span class="nc">H5FileManager</span><span class="p">(</span><span class="n">_H5FileManager</span><span class="p">):</span>
Expand All @@ -281,19 +305,11 @@ <h1>Source code for processor.pah</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>

&copy; Copyright 2018-2020, momentoscope team

</p>
</div>



Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a

<a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a>

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

</footer>

Expand All @@ -305,6 +321,7 @@ <h1>Source code for processor.pah</h1><div class="highlight"><pre>
</div>



<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
Expand Down
Loading

0 comments on commit 85b0894

Please sign in to comment.