Skip to content

Commit

Permalink
Merge pull request #55 from Samreay/Issue52
Browse files Browse the repository at this point in the history
add PHOTFLAG_MSKREJ key
  • Loading branch information
OmegaLambda1998 authored May 14, 2021
2 parents b75dc2f + 6212f78 commit b51d5aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pippin/dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, name, output_dir, config, options, global_config, dependencie
self.output_info = os.path.join(self.output_dir, f"{self.genversion}.YAML")
self.output["genversion"] = self.genversion
self.opt_setpkmjd = options.get("OPT_SETPKMJD", 16)
self.photflag_mskrej = options.get("PHOTFLAG_MSKREJ", 1016)
self.output["data_path"] = self.data_path
self.output["photometry_dirs"] = [get_output_loc(self.raw_dir)]
self.output["sim_folders"] = [get_output_loc(self.raw_dir)]
Expand Down Expand Up @@ -117,7 +118,7 @@ def __init__(self, name, output_dir, config, options, global_config, dependencie
PRIVATE_DATA_PATH = '{data_path}'
VERSION_PHOTOMETRY = '{genversion}'
PHOTFLAG_MSKREJ = 1016 !PHOTFLAG eliminate epoch that has errors, not LC
PHOTFLAG_MSKREJ = {photflag_mskrej} !PHOTFLAG eliminate epoch that has errors, not LC
{photflag}
{cutwin_snr_nodetect}
Expand Down Expand Up @@ -154,7 +155,7 @@ def _run(self):
photflag = f"PHOTFLAG_DETECT = {val_p}" if val_p else ""
cutwin = f"CUTWIN_SNR_NODETECT = {val_c}" if val_c else ""
command_string = self.clump_command.format(
genversion=self.genversion, data_path=self.data_path, opt_setpkmjd=self.opt_setpkmjd, photflag=photflag, cutwin_snr_nodetect=cutwin
genversion=self.genversion, data_path=self.data_path, opt_setpkmjd=self.opt_setpkmjd, photflag=photflag, cutwin_snr_nodetect=cutwin, photflag_mskrej=self.photflag_mskrej
)
header_dict = {
"job-name": self.job_name,
Expand Down

0 comments on commit b51d5aa

Please sign in to comment.