pyPetal Arguments
Required General Arguments
Argument |
Description |
Type |
|---|---|---|
|
The directory used for all output. |
|
|
Either the list of filenames to all light curve files, or an array of the light curves themselves. If given as a list of filenames, all files must be in the same directory. The first line will be considered the continuum light curve. |
list of |
Note
pyPetal will use the first 3 columns of the light curve files, and assume they represent the time, values, and uncertainty in the light curves.
Warning
By default, arg2=None. pyPetal will raise an error if arg2=None.
Optional General Arguments
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
A list of the names of all lines input in |
|
|
|
The format of the light curve files input in |
|
|
|
Whether or not to display text progress of the pipeline. |
|
|
|
Whether or not to display plots showing the progress of the pipeline. |
|
|
|
The unit to use for figures for the time axis. |
|
|
|
The unit used for figures for the light curve axis. Can be a list of units or a single unit. If a single unit is given, it will be assumed for all lines. pyPetal will recognize “mag” as as magnitude and invert the axis of all plots. All other units will be assumed to be flux units. |
|
|
|
The range of lags to use for all pyPetal modules when searching for a lag. If |
list of |
|
|
The number of threads to use for multiprocessing. This will be applied to all modules selected. |
|
1 |
Module: DRW Rejection (run_drw_rej)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The number of \(\sigma\) from the mean DRW fit to reject data points. |
|
3.0 |
|
Whether to incluse a noise (“jitter”) term \(\sigma_n\) in the DRW fitting process. |
|
|
|
The number of chains for Monte Carlo sampling. |
|
10000 |
|
The number of burn-in Monte Carlo samples. |
|
3000 |
|
The number of walkers for Monte Carlo sampling. |
|
32 |
|
|
|
|
|
If |
|
|
|
If |
|
|
Module: Detrending (run_detrend)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The number of Gaussians to use in the |
|
2 |
|
The number of chains for Monte Carlo sampling. |
|
4 |
|
The minimum number of iterations for the Monte Carlo simulations. |
|
5000 |
|
The maximum number of iterations for the Monte Carlo simulations. |
|
10000 |
Module: pyCCF (run_pyccf)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The number of Monte Carlo simulations to run. |
|
3000 |
|
The time interval with which pyCCF will interpolate the ligh curves to form the ICCF. This value must be shorter than the average cadence of the ligh curves. Setting this value too low can introduce noise. If set to |
|
2.0 |
|
The type of resampling to perform for the Monte Carlo simulations. 0 performs both flux randomization (FR) and random subset selection (RSS). 1 performs only FR. 2 performs only RSS. |
|
0 |
|
The threshold for considering a measurement in the ICCF significant when computing peaks and centroids. Must be within the interval (0,1). All peaks and centroids with correlation coefficient \(r_{\rm max} \leq\) |
|
0.2 |
|
The lower limit of correlation coefficient used when calculating the centroid of the ICCF. Must be within the interval (0,1). |
|
0.8 |
Module: pyZDCF (run_pyzdcf)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The number of Monte Carlo simulations to run. |
|
1000 |
|
The minimum number of points to use in each bin when computing the ZDCF. Must be larger than 11. If set to 0, it will be set to 11. |
|
0 |
|
Whether or not the light curves are uniformly sampled. |
|
|
|
Whether or not to omit the points with zero lags when computing the ZDCF. |
|
|
|
Determines whether to use a sparse matrix implementation for reduced RAM usage. This feature is suitable for longer light curves (> 3000 data points). If True, will use sparse matrix implementation. If set to “auto”, will use sparse matrix implementation if there are more than 3000 data points per light curve. |
|
|
|
Prefix to the output ZDCF file. |
|
|
|
Whether or not to run the PLIKE algorithm on the ZDCF to get a maximum likelihood time lag. NOTE: If |
|
|
|
The path to the PLIKE executable. |
|
|
Module: pyROA (run_pyroa)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The total number of chains for Monte Carlo sampling. |
|
20000 |
|
The number of burn-in steps to remove from the Monte Carlo samples. |
|
15000 |
|
Whether or not to fit the time lags of all light curves together. |
|
|
|
The initial guess for the time lag. If one value is given, it will be used for all lines. If |
|
|
|
Whether or not to subtract the mean from all light curves before analysis. |
|
|
|
Whether or not to divide the light curves by their mean before analysis. This will occur before the mean is subtracted if |
|
|
|
Whether or not to add additional uncertainty in the data, same as the PyROA argument. If |
|
|
|
Same as the |
|
|
|
Same as the |
|
|
|
The name of the object to use for PyROA analysis. This will apply to the output file names and figures. If |
|
|
|
A function used to get the priors for PyROA. Must have the same arguments as |
|
|
Module: MICA2 (run_mica2)
MICA2 arguments:
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The type of transfer function to use in MICA2. Can be either “gaussian” or “tophat”. |
|
|
|
The number of saves to use in CDNest for the sampling. |
|
2000 |
|
Whether each dataset has the same variability parameters. |
|
|
|
Whether each dataset has the same line parameters. |
|
|
|
Whether or not to include a trend in the transfer function. 0 for constant trend, 1 for linear trend, 2 for conic trend. |
|
0 |
|
Whether or not to force Gaussians to be located at positive lags. |
|
|
|
Whether or not to turn on negative response. |
|
|
|
The lower and upper limits to use for the number of Gaussians. If only one value is given, it will be assumed for both limits. |
list of |
[1, 1] |
|
The lower and upper limits for the width of the Gaussians. If only one value is given, it will be assumed for both limits. If |
list of |
|
|
Whether or not to include a constant systematic error for the continuum light curve. |
|
|
|
Whether or not to include a systematic error for the line light curve(s). |
|
|
|
The type of prior to use for the lags. See the MICA2 documentation. |
|
0 |
|
The parameters to use for the lag prior. See the MICA2 documentation. |
list of |
|
|
Whether or not to fit the time lags of all light curves together, with the same transfer function. |
|
|
|
Whether or not the order of the time lags makes a difference (i.e., whether or not the time lags are allowed to be equal). If order doesn’t matter, MICA2 will be able to fit all light curves in one run. If set to |
|
|
CDNest arguments:
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
See the MICA2 or CDNest documentation. |
|
1 |
|
|
1 |
|
|
|
1 |
|
|
|
1 |
|
|
|
10 |
|
|
|
100 |
|
|
|
0.1 |
|
|
|
0 |
Module: JAVELIN (pypetal_jav.run_pipeline)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
Whether or not to subtract the mean from all light curves before analysis. |
|
|
|
The number of chains to use in the MCMC. |
|
100 |
|
The number of burn-in steps to use in the MCMC. |
|
100 |
|
The number of walkers to use in the MCMC. |
|
100 |
|
The type of reverberation mapping (RM) analysis to use when running JAVELIN. Can either be set to “spec” for spectroscopic RM, or “phot” for photometric RM. |
|
|
|
Whether or not to fit all lines to the same model. If |
|
|
|
A log prior is used to logarithmically penalizes lag values larger than x`*baseline, where `x is the value of this parameter. |
|
0.3 |
|
A list to determine what parameters to fix/vary when fitting the light curves. This should be an array with a length equal to the number of parameters in the model. The fitted parameters will be the two DRW parameters \(( \log(\sigma_{\rm DRW}), \log(\tau_{\rm DRW}) )\) and (3 or 4) tophat parameters for each non-continuum light curve. Setting to 0 will fix the parameter and setting to 1 will allow it to vary. If None, all parameters will be allowed to vary. The fixed parameters must match the fixed value in the array input to the |
|
|
|
A list of the fixed parameters, corresponding to the elements of the fixed array. If |
|
|
|
Whether or not to output the MCMC chains to a file. |
|
|
|
Whether or not to output the MCMC burn-in chains to a file. |
|
|
|
Whether or not to output the MCMC log probability to a file. |
|
|
|
The number of bins to use for the output histogram plots. |
|
100 |
Determining the number of parameters in the JAVELIN model:
|
|
Number of Parameters |
Parameter Names |
|---|---|---|---|
|
|
\(2 + 3 \cdot ({\rm number of light curves})\) |
\(\log(\sigma_{\rm DRW})\), \(\log(\tau_{\rm DRW})\), \(t_1\), \(w_1\), \(s_1\), \(t_2\), … |
|
|
5 per line |
\(\log(\sigma_{\rm DRW})\), \(\log(\tau_{\rm DRW})\), \(t\), \(w\), \(s\) |
|
|
6 per line |
\(\log(\sigma_{\rm DRW})\), \(\log(\tau_{\rm DRW})\), \(t\), \(w\), \(s\), \(\alpha\) |
Note
If use_for_javelin=True in the DRW Rejection module, and fixed/p_fix are set in the JAVELIN module, the DRW fitting results will be used instead of the input fixed parameter values.
Note
If rm_type="phot", only one light curve can be modeled to a given continuum. Therefore, pyPetal will set together=False.
Module: Weighting (pypetal.run_weighting)
Argument |
Description |
Type |
Default |
|---|---|---|---|
|
The minimum gap size to use to detect gaps in the continuum light curve when obtaining \(N(\tau)\). |
|
20.0 |
|
The exponent used when calculating \(P(\tau)\). |
|
2.0 |
|
The width of the Gaussian used to smooth the weighted distribution to find the primary peak. |
|
20.0 |
|
The relative height (0-1) to use for the peak-finding algorithm. |
|
0.99 |
|
Whether or not to zoom in on the peak with an inset in the output plot. |
|
|