XMLWordPrintable

## Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• 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.

## Activity

Hide
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
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
Merlin Fisher-Levine added a comment -

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

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

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

Show
Gregory Dubois-Felsmann added a comment - - edited Could one of you send me an example of such a table? (Or attach it here.)
Hide
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
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:
Tim Jenness
Reporter:
Tim Jenness
Reviewers:
Merlin Fisher-Levine
Watchers:
Gregory Dubois-Felsmann, Merlin Fisher-Levine, Tim Jenness