Skip to content

Commit

Permalink
Fix path to nway.py in multiband_photometry
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed Sep 5, 2024
1 parent cc7dd3d commit 8849a83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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

0 comments on commit 8849a83

Please sign in to comment.