Skip to content

Commit

Permalink
Automated commit for HTML files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 10, 2025
1 parent 5fdb8e7 commit 8da4028
Showing 1 changed file with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7312,6 +7312,7 @@
processEnvironments: true
},
displayAlign: 'center',
messageStyle: 'none',
CommonHTML: {
linebreaks: {
automatic: true
Expand Down Expand Up @@ -7517,7 +7518,7 @@
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">__nbid__</span> <span class="o">=</span> <span class="s1">'0070'</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">__nbid__</span> <span class="o">=</span> <span class="s1">'0071'</span>
<span class="n">__author__</span> <span class="o">=</span> <span class="s1">'Brian Merino &lt;brian.merino@noirlab.edu&gt;, Vinicius Placco &lt;vinicius.placco@noirlab.edu&gt;'</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s1">'20241216'</span> <span class="c1"># yyyymmdd; version datestamp of this notebook</span>
<span class="n">__keywords__</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'GHOST'</span><span class="p">,</span><span class="s1">'Gemini'</span><span class="p">,</span><span class="s1">'stars'</span><span class="p">,</span><span class="s1">'DRAGONS'</span><span class="p">]</span>
Expand Down Expand Up @@ -7659,21 +7660,21 @@ <h1 id="Imports-and-setup">Imports and setup<a class="anchor-link" href="#Import
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">import</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">astrodata</span>
<span class="kn">import</span> <span class="nn">shutil</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">warnings</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">glob</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">os</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">astrodata</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">shutil</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">matplotlib.pyplot</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">plt</span>

<span class="kn">from</span> <span class="nn">gempy.utils</span> <span class="kn">import</span> <span class="n">logutils</span>
<span class="kn">from</span> <span class="nn">gempy.adlibrary</span> <span class="kn">import</span> <span class="n">dataselect</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">gempy.utils</span><span class="w"> </span><span class="kn">import</span> <span class="n">logutils</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">gempy.adlibrary</span><span class="w"> </span><span class="kn">import</span> <span class="n">dataselect</span>

<span class="kn">from</span> <span class="nn">recipe_system</span> <span class="kn">import</span> <span class="n">cal_service</span>
<span class="kn">from</span> <span class="nn">recipe_system.reduction.coreReduce</span> <span class="kn">import</span> <span class="n">Reduce</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">recipe_system</span><span class="w"> </span><span class="kn">import</span> <span class="n">cal_service</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">recipe_system.reduction.coreReduce</span><span class="w"> </span><span class="kn">import</span> <span class="n">Reduce</span>

<span class="kn">from</span> <span class="nn">astropy.utils.exceptions</span> <span class="kn">import</span> <span class="n">AstropyWarning</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">astropy.utils.exceptions</span><span class="w"> </span><span class="kn">import</span> <span class="n">AstropyWarning</span>
<span class="n">warnings</span><span class="o">.</span><span class="n">simplefilter</span><span class="p">(</span><span class="s1">'ignore'</span><span class="p">,</span> <span class="n">category</span><span class="o">=</span><span class="n">AstropyWarning</span><span class="p">)</span>
<span class="n">warnings</span><span class="o">.</span><span class="n">filterwarnings</span><span class="p">(</span><span class="s2">"ignore"</span><span class="p">)</span>
</pre></div>
Expand All @@ -7700,7 +7701,7 @@ <h2 id="Establish-function-to-check-and-delete-various-directories-or-files.">Es
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span> <span class="nf">check_and_delete</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span><span class="w"> </span><span class="nf">check_and_delete</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
<span class="c1">#Check to see if path already exists.</span>
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
<span class="c1">#If path leads to a directory.</span>
Expand Down Expand Up @@ -7761,7 +7762,7 @@ <h1 id="Prepare-the-working-directory">Prepare the working directory<a class="an
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span> <span class="nf">clean_up</span><span class="p">(</span><span class="n">save_reduced</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span><span class="w"> </span><span class="nf">clean_up</span><span class="p">(</span><span class="n">save_reduced</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span>
<span class="c1">#Does the calibrations directory already exist? </span>
<span class="n">check_and_delete</span><span class="p">(</span><span class="s1">'calibrations'</span><span class="p">)</span>

Expand Down Expand Up @@ -8016,7 +8017,7 @@ <h1 id="update_list()-and-reduce_func()">update_list() and reduce_func()<a class
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span> <span class="nf">update_list</span><span class="p">():</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span><span class="w"> </span><span class="nf">update_list</span><span class="p">():</span>
<span class="c1">#Create a new file list that contains the intermediate files</span>
<span class="c1">#identify all of the files in the working directory</span>
<span class="n">intermediate</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">listdir</span><span class="p">()</span>
Expand All @@ -8043,7 +8044,7 @@ <h1 id="update_list()-and-reduce_func()">update_list() and reduce_func()<a class
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span> <span class="nf">reduce_func</span><span class="p">(</span><span class="n">files_list</span><span class="p">,</span><span class="n">uparms</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span><span class="n">recipename</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="k">def</span><span class="w"> </span><span class="nf">reduce_func</span><span class="p">(</span><span class="n">files_list</span><span class="p">,</span><span class="n">uparms</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span><span class="n">recipename</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="c1">#Use DRAGONS' reduce function to reduce the provided list of files.</span>
<span class="c1">#By default, this function will use the default settings for reduce().</span>
<span class="c1">#uparms: This is a list of tuples with the primitive name and parameter in the first element and the value in the second e.g. [('stackFrames:operation', 'median')]. </span>
Expand Down

0 comments on commit 8da4028

Please sign in to comment.