Skip to content

Commit

Permalink
Update path
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed May 22, 2024
1 parent 31bd0d0 commit 731c3a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mirar/processors/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from astropy.wcs import WCS

from mirar.data import Image, ImageBatch
from mirar.paths import BASE_NAME_KEY, FITS_MASK_KEY, get_output_dir
from mirar.paths import BASE_NAME_KEY, FITS_MASK_KEY, base_code_dir, get_output_dir
from mirar.processors.base_processor import BaseImageProcessor

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -110,7 +110,10 @@ def __init__(
raise ValueError("Must specify either mask_path or mask_path_key, not both")

def description(self) -> str:
return f"Processor to mask bad pixels using a pre-defined map: {self.mask_path}"
return (
f"Mask bad pixels using a pre-defined map: "
f"{self.mask_path.relative_to(base_code_dir)}"
)

def get_mask(self, image) -> np.ndarray:
"""
Expand Down

0 comments on commit 731c3a0

Please sign in to comment.