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

Add tabular output to translate_header

    Details

    • Story Points:
      1
    • Team:
      Architecture

      Description

      In order to simplify the listing of headers from multiple files, add a tabular option to translate_header.

      I think the default will be that for one file we use the verbose listing and for multiple files we use the tabular form.

        Attachments

          Activity

          Hide
          tjenness Tim Jenness added a comment -

          Merlin Fisher-Levine There is not a lot of code here. It's easy to add new columns so let me know how you want the tabular mode tweaked.

          Show
          tjenness Tim Jenness added a comment - Merlin Fisher-Levine There is not a lot of code here. It's easy to add new columns so let me know how you want the tabular mode tweaked.
          Hide
          mfisherlevine Merlin Fisher-Levine added a comment -

          Looks good. Two minor comments on PR, which is probably me just not understanding.

          Show
          mfisherlevine Merlin Fisher-Levine added a comment - Looks good. Two minor comments on PR, which is probably me just not understanding.
          Hide
          gpdf Gregory Dubois-Felsmann added a comment - - edited

          Could one of you send me an example of such a table? (Or attach it here.)

          Show
          gpdf Gregory Dubois-Felsmann added a comment - - edited Could one of you send me an example of such a table? (Or attach it here.)
          Hide
          tjenness Tim Jenness added a comment -

          It's just a simple start at the moment:

          ObsId                            ImgType  Object           Filter   ExpTime
          -------------------------------- -------- ---------------- -------- -------
          ct4m20121211t220632              zero     postflats-BIAS   Y DECam    0.0 s
          ct4m20150220t004721              science  Blind15A_03      g         86.0 s
          ct4m20190402t050618              science                   VR DECam 120.0 s
          ct4m20130901t060255              science  DES supernova he z DECam  200.0 s
          HSCA04090000                     science  SSP-Wide         HSC-R    150.0 s
          HSCA90402400                     science  STRIPE82L        HSC-I     30.0 s
          849375                           science  D3               r        300.2 s
          1038843                          science  w2.+2+2          i.MP9702 615.0 s
          6377 4 g 407                     science  82 S             g         53.9 s
          SUPE00535770                     science  Ecliptic Deep Fi W-S-R+   200.0 s
          

          But it's straightforward to add bits. I have not attempted to do dynamic column sizing based on content since that would require me to cache all the results and not print anything out until I had scanned all the files. Could do that if that's what people want. I could also write the table out using markdown table syntax if we wanted, then we wouldn't need the dynamic sizing – maybe as a different table mode. Lots of possibilities here.

          Show
          tjenness Tim Jenness added a comment - It's just a simple start at the moment: ObsId ImgType Object Filter ExpTime -------------------------------- -------- ---------------- -------- ------- ct4m20121211t220632 zero postflats-BIAS Y DECam 0.0 s ct4m20150220t004721 science Blind15A_03 g 86.0 s ct4m20190402t050618 science VR DECam 120.0 s ct4m20130901t060255 science DES supernova he z DECam 200.0 s HSCA04090000 science SSP-Wide HSC-R 150.0 s HSCA90402400 science STRIPE82L HSC-I 30.0 s 849375 science D3 r 300.2 s 1038843 science w2.+2+2 i.MP9702 615.0 s 6377 4 g 407 science 82 S g 53.9 s SUPE00535770 science Ecliptic Deep Fi W-S-R+ 200.0 s But it's straightforward to add bits. I have not attempted to do dynamic column sizing based on content since that would require me to cache all the results and not print anything out until I had scanned all the files. Could do that if that's what people want. I could also write the table out using markdown table syntax if we wanted, then we wouldn't need the dynamic sizing – maybe as a different table mode. Lots of possibilities here.

            People

            • Assignee:
              tjenness Tim Jenness
              Reporter:
              tjenness Tim Jenness
              Reviewers:
              Merlin Fisher-Levine
              Watchers:
              Gregory Dubois-Felsmann, Merlin Fisher-Levine, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel