Skip to content

Commit

Permalink
Merge pull request #316 from nasa-fornax/fix-313
Browse files Browse the repository at this point in the history
Fix path to nway.py in multiband_photometry 365270d
  • Loading branch information
bsipocz committed Sep 6, 2024
1 parent 330b566 commit c6f7771
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/forced_photometry/multiband_photometry.doctree
Binary file not shown.
5 changes: 4 additions & 1 deletion _sources/forced_photometry/multiband_photometry.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ except ImportError:
print("tractor is missing")
pass
# Add ~/.local/bin to path so executables installed with pip are available (needed for nway)
os.environ['PATH'] = f"{os.environ['HOME']}/.local/bin:{os.environ['PATH']}"
%matplotlib inline
```
Expand Down Expand Up @@ -794,7 +797,7 @@ nway_write_header('data/multiband_phot.fits', 'OPT', float((2*rad_in_arcmin/60)*

```{code-cell} ipython3
# call nway
!/home/jovyan/.local/bin/nway.py 'data/Chandra/COSMOS_chandra.fits' :ERROR_RADIUS 'data/multiband_phot.fits' 0.1 --out=data/Chandra/chandra_multiband.fits --radius 15 --prior-completeness 0.9
!nway.py 'data/Chandra/COSMOS_chandra.fits' :ERROR_RADIUS 'data/multiband_phot.fits' 0.1 --out=data/Chandra/chandra_multiband.fits --radius 15 --prior-completeness 0.9
#!/opt/conda/bin/nway.py 'data/Chandra/COSMOS_chandra.fits' :ERROR_RADIUS 'data/multiband_phot.fits' 0.1 --out=data/Chandra/chandra_multiband.fits --radius 15 --prior-completeness 0.9
```
Expand Down
5 changes: 4 additions & 1 deletion forced_photometry/multiband_photometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ <h2>Non-standard Dependencies<a class="headerlink" href="#non-standard-dependenc
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;tractor is missing&quot;</span><span class="p">)</span>
<span class="k">pass</span>

<span class="c1"># Add ~/.local/bin to path so executables installed with pip are available (needed for nway)</span>
<span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PATH&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;HOME&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">/.local/bin:</span><span class="si">{</span><span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PATH&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">&quot;</span>


<span class="o">%</span><span class="n">matplotlib</span> <span class="n">inline</span>
</pre></div>
Expand Down Expand Up @@ -1342,7 +1345,7 @@ <h3>4b. Run <code class="docutils literal notranslate"><span class="pre">nway</s
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># call nway</span>
<span class="err">!</span><span class="o">/</span><span class="n">home</span><span class="o">/</span><span class="n">jovyan</span><span class="o">/.</span><span class="n">local</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">nway</span><span class="o">.</span><span class="n">py</span> <span class="s1">&#39;data/Chandra/COSMOS_chandra.fits&#39;</span> <span class="p">:</span><span class="n">ERROR_RADIUS</span> <span class="s1">&#39;data/multiband_phot.fits&#39;</span> <span class="mf">0.1</span> <span class="o">--</span><span class="n">out</span><span class="o">=</span><span class="n">data</span><span class="o">/</span><span class="n">Chandra</span><span class="o">/</span><span class="n">chandra_multiband</span><span class="o">.</span><span class="n">fits</span> <span class="o">--</span><span class="n">radius</span> <span class="mi">15</span> <span class="o">--</span><span class="n">prior</span><span class="o">-</span><span class="n">completeness</span> <span class="mf">0.9</span>
<span class="err">!</span><span class="n">nway</span><span class="o">.</span><span class="n">py</span> <span class="s1">&#39;data/Chandra/COSMOS_chandra.fits&#39;</span> <span class="p">:</span><span class="n">ERROR_RADIUS</span> <span class="s1">&#39;data/multiband_phot.fits&#39;</span> <span class="mf">0.1</span> <span class="o">--</span><span class="n">out</span><span class="o">=</span><span class="n">data</span><span class="o">/</span><span class="n">Chandra</span><span class="o">/</span><span class="n">chandra_multiband</span><span class="o">.</span><span class="n">fits</span> <span class="o">--</span><span class="n">radius</span> <span class="mi">15</span> <span class="o">--</span><span class="n">prior</span><span class="o">-</span><span class="n">completeness</span> <span class="mf">0.9</span>

<span class="c1">#!/opt/conda/bin/nway.py &#39;data/Chandra/COSMOS_chandra.fits&#39; :ERROR_RADIUS &#39;data/multiband_phot.fits&#39; 0.1 --out=data/Chandra/chandra_multiband.fits --radius 15 --prior-completeness 0.9</span>
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit c6f7771

Please sign in to comment.