Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-46586: Modify embargo-butler auto-ingest to handle photodiode files #60

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

hsinfang
Copy link
Contributor

@hsinfang hsinfang commented Oct 8, 2024

I don't like so many special casing, but it might be necessary unless RawIngestTask is made to accept photodiode data?

README.md Show resolved Hide resolved
@@ -146,9 +146,12 @@ def __init__(self, path):
self.instrument = f"{csc}/{generator}"
elif len(components) == 6:
self.bucket, self.instrument, year, month, day, self.filename = components
elif len(components) == 5: # photodiode data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. This really says that the Camera is not following salobj precedent in generating its LFA data. I guess it may be too late to get that changed.

src/ingest.py Outdated Show resolved Hide resolved
@@ -233,6 +254,22 @@ def main():
info = Info.from_path(resource.geturl())
r.lrem(worker_queue, 0, info.path)

if is_lfa and resources_photodiode:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is the same structure as the previous section, it might be nice to abstract that out into a function, in case we have more ingesters later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also bothered by the repeated structure and want to abstract it out. But as the camera team wants this asap I'll defer the refactoring to a future ticket.

LSSTCam is the only instrument with photodiode data that may need to
be ingested.

An example of the photodiode file path is
rubinobs-lfa-cp/MTCamera/photodiode/20240928/MC_C_20240928_002826_photodiode.ecsv
@hsinfang hsinfang merged commit 807b756 into main Nov 1, 2024
4 checks passed
@hsinfang hsinfang deleted the tickets/DM-46586 branch November 1, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants