Skip to content

Commit

Permalink
Add SDSSC2VB env var to version control flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Morrison committed Oct 18, 2024
1 parent 514741e commit 22a4038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdss_semaphore/targeting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from typing import Tuple

from os import getenv
from sdss_semaphore import BaseFlags, cached_class_property

class BaseTargetingFlags(BaseFlags):
Expand Down Expand Up @@ -137,7 +137,7 @@ class TargetingFlags(BaseTargetingFlags):
"""Communicating with SDSS-V targeting flags."""

dtype, n_bits = (np.uint8, 8)
MAPPING_BASENAME = "sdss5_target_2_with_groups.csv"
MAPPING_BASENAME = f"sdss5_target_{getenv('SDSSC2VB', default=2)}_with_groups.csv"

# TODO: Metadata about mapping version should be stored in the MAPPING_BASENAME file
# and be assigned as a cached class property once the file is loaded.
Expand Down

0 comments on commit 22a4038

Please sign in to comment.