Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-4159

It seems impossible to configure a configuration via a config option

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pex_config
    • Labels:
      None
    • Templates:
    • Team:
      Data Facility

      Description

      We just came across a problem with configuration on the HSC side (https://hsc-jira.astro.princeton.edu/jira/browse/HSC-1342).

      There is an algorithm, flags.pixel, to set flags based on bits set in the Mask. I just added an option to set a new bitplane (by default "BRIGHT_OBJECT"), and when it's enabled you would also like to add flags such as flags.pixel.bright.object.any (the fact that the _ in the name becomes . is a different topic).

      However, this appears to be impossible. By the time the config parameter is parsed we've finished creating the measurement task, and its config is frozen so I cannot add the extra bits. The workaround is to add it in a task override file (in this case in obs_subaru) but this is unsatisfactory as it's not just in a different file but a different package.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhl Robert Lupton
                Watchers:
                Gregory Dubois-Felsmann, Hsin-Fang Chiang, John Swinbank, Kian-Tat Lim, Michelle Butler, Nate Lust, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel