Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisNe committed Mar 24, 2023
1 parent e57996a commit de08ab1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions timewise/wise_data_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,16 @@ def calculate_position_mask(lightcurve):
return pd.Series(keep_mask).to_dict()

def get_position_mask(self, service, chunk_number):
"""
Get the position mask for a chunk
:param service: The service that was used to download the data, either of `gator` or `tap`
:type service: str
:param chunk_number: chunk number
:type chunk_number: int
:returns: position masks
:rtype: dict
"""

logger.info(f"getting position masks for {service}, chunk {chunk_number}")
fn = os.path.join(self.cache_dir, "position_masks", f"{service}_chunk{chunk_number}.json")
Expand Down

0 comments on commit de08ab1

Please sign in to comment.