European-XFEL / EXtra-data

Access saved EuXFEL data
https://extra-data.rtfd.io
BSD 3-Clause "New" or "Revised" License
7 stars 13 forks source link

Show more source details in lsxfel #29

Open takluyver opened 4 years ago

takluyver commented 4 years ago

lsxfel can list the sources in a file or a run. It should be possible to see more info about them - e.g. how much data is recorded for each, what keys it contains, and the data shape of those keys.

Gathering this information may be slow, so we probably shouldn't do it by default. Two possibilities:

fangohr commented 4 years ago

Yes, please! I think this is a really useful feature: it may be used at the end of a run to quickly check that the right sources are in the files, and also that data has been recorded for these sources. I think this is a step that is often done manually at the moment (using h5ls or h5view or so).

I think both the exhaustive -v option but also the ability to select a particular source or set of sources would be useful.

takluyver commented 4 years ago

I'm leaning towards the source option, because you could specify --source '*' to give more detail on all sources.

fangohr commented 4 years ago

It might still be attractive to have the option to write -v instead of --source '*' for convenience? Or we can wait for people to request it. Or use another flag.

(But --source '*' does not seem natural to me to type if you need it more than once.)

takluyver commented 4 years ago

PR #38 would have the option called --detail instead, taking a source pattern, e.g. --detail '*/XGM/*'.

I'm open to adding a --detail-all flag or something, but I prefer to get a single option designed and working first. And showing the details for all sources is fairly slow and produces a lot of output, so I think it makes sense to start with the one that allows selecting sources.

takluyver commented 4 years ago

The --detail option described in the previous comment got merged for 1.2.

I'll leave this issue open for now to consider something like a --detail-all flag. But as in the previous comment, I'd like to get some experience using the --detail option before we make a decision on adding another option.