Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-423 Regular DRP processing of LAM and Subaru data
  3. PIPE2D-639

Restructure YAML inputs to conform to the YAML specification

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2DDRP-2019 E, 2DDRP-2021 A, 2DDRP-2021 A 2

      Description

      The current YAML structure is:

      calibBlocks:
        blockA:
          ...
        blockB:
          ...
      

      where blockA and blockB are free-format names for blocks. We expect that blockA is done before blockB. The weekly test relies on this behavior.

      In fact, Python's dict type preserves the order of items, and pyyaml preserves the order of items in the YAML file (with an option)

      However, YAML specification says a mapping is unordered.
      https://yaml.org/spec/1.2/spec.html#id2765608

      To serialize a mapping ... This order ... should not be used ... for the preservation of application data). In every case where node order is significant, a sequence must be used.

      The above structure should have been:

      calibBlocks:
        -
          name: blockA
          ...
        -
          name: blockB
          ...
      

        Attachments

          Activity

            People

            • Assignee:
              sogo.mineo sogo.mineo
              Reporter:
              sogo.mineo sogo.mineo
              Reviewers:
              price
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: