Skip to content

Plotting CCDs without defined apertures breaks reduce. #134

Description

@StuartLittlefair

As raised by @vikdhillon in #123

Trying to plot all CCDs in reduce when a CCD has no defined apertures gives the error below

File "/usr/local/python-3.11.4/bin/reduce", line 8, in
sys.exit(reduce())
^^^^^^^^
File "/usr/local/python-3.11.4/lib/python3.11/site-packages/hipercam/scripts/reduce.py", line 715, in reduce
update_plots(
File "/usr/local/python-3.11.4/lib/python3.11/site-packages/hipercam/reduction.py", line 994, in update_plots
res = next(res for (this_cnam, res) in results if this_cnam == cnam)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

we should change this so the CCD data is plotted as requested, but no aperture is overlayed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions