Skip to content

Commit

Permalink
fixing bug in get_frames_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Apr 11, 2024
1 parent 6368ff9 commit 9e16d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lvmdrp/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ def get_frames_metadata(
raw_frame = f"{mjd}/sdR*{suffix}*" if mjd else f"*/sdR*{suffix}*"
frames = list(pathlib.Path(raw_data_path).rglob(raw_frame))

if _load_or_create_store(tileid="*", mjd=mjd, kind="raw") and not overwrite:
metadata_paths = _get_metadata_paths(tileid="*", mjd=mjd, kind="raw", filter_exist=True)
if any(metadata_paths) and not overwrite:
log.info("Loading existing metadata store.")
meta = get_metadata(mjd=mjd, tileid="*")
else:
Expand Down

0 comments on commit 9e16d20

Please sign in to comment.