Skip to content

Ability to generate a CAL target list#417

Open
prkrtg wants to merge 2 commits into
mainfrom
pgupta/calib_update
Open

Ability to generate a CAL target list#417
prkrtg wants to merge 2 commits into
mainfrom
pgupta/calib_update

Conversation

@prkrtg
Copy link
Copy Markdown
Contributor

@prkrtg prkrtg commented May 2, 2026

This converts Matt's bash code to a python function which generates a CSV target list
User clicks on Calibration button to create the target list, and then can use it to run calibrations

if xbin <= 0 or ybin <= 0:
raise ValueError("binning values must be greater than 0.")

# Nominal exposure times, seconds.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could these be in a config file? They may never need to be updated for years or maybe never, but if they ever do need to be updated, it will take a developer to modify the code.

if n_etalon > 0:
rows.append(
_cal_row(
"CAL_ETALON",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will be rejected by the sequencer because there is no calibration target named CAL_ETALON. That suggests we should be getting names from the same place.

@prkrtg prkrtg force-pushed the pgupta/calib_update branch from ff5488c to 792380c Compare May 14, 2026 20:03
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