Skip to content

Commit

Permalink
tune examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeast01 committed Jul 24, 2018
1 parent 4714ed6 commit 795a39f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,27 @@ with git and git can be invoked via "git".
define environment variables (bash shell, e.g., .bashrc)

EXOFAST_PATH="$HOME/idl/EXOFASTv2/" ; export EXOFAST_PATH
IDL_PATH="$IDL_PATH:+$EXOFAST_PATH" ; export IDL_PATH
# if IDL_PATH is not defined, add EXOFAST_PATH and subdirectories to the default IDL path
if [ -z "$IDL_PATH" ]; then
IDL_PATH="<IDL_DEFAULT>:+${EXOFAST_PATH}" ; export IDL_PATH
else
# otherwise, append EXOFAST_PATH and all subdirectories to your IDL_PATH
IDL_PATH="${IDL_PATH}:+${EXOFAST_PATH}" ; export IDL_PATH
fi

--- OR ---

define environment variables (c shell, e.g., .tcshrc)

setenv EXOFAST_PATH "${HOME}/idl/EXOFASTv2/"
setenv IDL_PATH "${IDL_PATH}:+${EXOFAST_PATH}"
# if IDL_PATH is not defined, add EXOFAST_PATH and subdirectories to the default IDL path
if ("$IDL_PATH" == "") then
setenv IDL_PATH "<IDL_DEFAULT>:+${EXOFAST_PATH}"
else
# otherwise, append EXOFAST_PATH and all subdirectories to your IDL_PATH
setenv IDL_PATH "${IDL_PATH}:+${EXOFAST_PATH}"
endif


NOTE: If you have used the old version of EXOFAST, you must remove it
from your IDL_PATH to run correctly.
Expand Down
5 changes: 3 additions & 2 deletions examples/hat3/fithat3.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pro fithat3, debug=debug, verbose=verbose, maxsteps=maxsteps, nthin=nthin

;; default to a very short run (not well-mixed or publication quality)
if n_elements(maxsteps) eq 0 then maxsteps= 50000
if n_elements(nthin) eq 0 then nthin=1 ;; 50
if n_elements(maxsteps) eq 0 then maxsteps= 25000
if n_elements(nthin) eq 0 then nthin=2 ;; 50
path = filepath('',root_dir=getenv('EXOFAST_PATH'),subdir=['examples','hat3'])

;; Fit using the Torres relation
Expand All @@ -12,4 +12,5 @@ exofastv2, nplanets=1, tranpath=path+'n20070428.Sloani.KepCam.dat', $
nthin=nthin, circular=[1], fitrv=[1],fittran=[1], $
debug=debug, verbose=verbose, /nomist, /torres


end
2 changes: 1 addition & 1 deletion examples/hat3/hat3.priors
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gamma_0 -14.8
jittervar 28 0
variance 0.00000537 0
eep 300
age 1.4
#age 1.4
# parallax from Gaia
# https://gea.esac.esa.int/archive/
parallax 7.403106340174454 0.1
Expand Down
4 changes: 2 additions & 2 deletions examples/hats7/fithats7.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pro fithats7, debug=debug, verbose=verbose, maxsteps=maxsteps, nthin=nthin

;; default to a very short run (not well-mixed or publication quality)
if n_elements(maxsteps) eq 0 then maxsteps=100 ;; 50000
if n_elements(nthin) eq 0 then nthin=1 ;; 50
if n_elements(maxsteps) eq 0 then maxsteps=10000 ;; 50000
if n_elements(nthin) eq 0 then nthin=3 ;; 50
path = filepath('',root_dir=getenv('EXOFAST_PATH'),subdir=['examples','hats7'])

exofastv2, nplanets=1, rvpath=path+'HATS-7b.*.rv',tranpath=path+'n20*.dat',$
Expand Down
2 changes: 1 addition & 1 deletion exofastv2.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <H1>Extended IDL Help</H1>
or type: <P>
<PRE> ? mk_html_help</PRE><P>
at the IDL command line prompt.<P>
<STRONG>Last modified: </STRONG>Wed Jul 18 09:47:03 2018.<P>
<STRONG>Last modified: </STRONG>Tue Jul 24 10:48:25 2018.<P>

<HR>

Expand Down
Binary file modified exofastv2.sav
Binary file not shown.

0 comments on commit 795a39f

Please sign in to comment.