Skip to content

Commit

Permalink
changing pixel masks path to use Oleg's
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Dec 12, 2024
1 parent 3eb8311 commit b9157c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/lvmdrp/functions/run_calseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,12 @@ def _link_pixelmasks():
"""Creates a symbolic link of fiducial pixel flats and masks to current version directory"""
tileid = 11111
tilegrp = tileid_grp(tileid)
pixelmasks_version_path = os.path.join(os.getenv('LVM_SPECTRO_REDUX'), f"{drpver}/{tilegrp}/{tileid}/pixelmasks")
pixelmasks_version_path = os.path.join(os.getenv('LVM_SPECTRO_REDUX'), f"{drpver}/{tilegrp}/{tileid}/pixelmasks_new")
if os.path.isdir(pixelmasks_version_path):
log.info(f"link to pixel flats and masks already exists, {pixelmasks_version_path}")
return

pixelmasks_path = os.path.join(MASTERS_DIR, "pixelmasks")
pixelmasks_path = os.path.join(MASTERS_DIR, "pixelmasks_new")
log.info(f"linking pixel flats and masks to {pixelmasks_version_path}")
os.symlink(src=pixelmasks_path,
dst=pixelmasks_version_path,
Expand Down
4 changes: 2 additions & 2 deletions python/lvmdrp/utils/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ def get_calib_paths(mjd, version=None, cameras="*", flavors=CALIBRATION_NAMES, l
# define root path to pixel flats and masks
# TODO: remove this once sdss-tree are updated with the corresponding species
if from_sanbox:
pixelmasks_path = os.path.join(MASTERS_DIR, "pixelmasks")
pixelmasks_path = os.path.join(MASTERS_DIR, "pixelmasks_new")
path_species = "lvm_calib"
else:
pixelmasks_path = os.path.join(os.getenv('LVM_SPECTRO_REDUX'), f"{version}/{tilegrp}/{tileid}/pixelmasks")
pixelmasks_path = os.path.join(os.getenv('LVM_SPECTRO_REDUX'), f"{version}/{tilegrp}/{tileid}/pixelmasks_new")
path_species = "lvm_master"

pixel_flavors = {"pixmask", "pixflat"}
Expand Down

0 comments on commit b9157c3

Please sign in to comment.