BCDA-APS / mdaviz

Data visualization for mda
https://bcda-aps.github.io/mdaviz/
Other
3 stars 0 forks source link

Turn metadata tab into tableview #103

Open rodolakis opened 7 months ago

rodolakis commented 7 months ago

Considering the structure of the metadata dictionary (pv, desc, unit, value), it would be easy to make it a nice tableview:

- - - sampleEntry
    - description: description
      unit: unit string
      value: value
 - - 29idARPES:saveData_fileName
    - description: File Name
      unit: ''
      value: mda_0006.mda
  - - 29idARPES:saveData_fileSystem
    - description: File System
      unit: ''
      value: /net/s29data/export/data_29idc/2020_2

Only one entry will need to be handled differently (QLabel?), and I am guessing some fo this info is not is really needed (mda object key for example):

  - - filename
    - !!python/object/apply:pathlib.PosixPath
      - /
      - Users
      - fannysimoes
      - src
      - mdaviz
      - mdaviz
      - data
      - test_folder1
      - mda_0006.mda
  - - version
    - 1.2999999523162842
  - - scan_number
    - 6
  - - rank
    - 1
  - - dimensions
    - - 21
  - - acquired_dimensions
    - - 21
  - - isRegular
    - 1
  - - ourKeys
    - - sampleEntry
      - filename
      - version
      - scan_number
      - rank
      - dimensions
      - acquired_dimensions
      - isRegular
      - ourKeys