dingo-gw / dingo

Dingo: Deep inference for gravitational-wave observations
MIT License
55 stars 18 forks source link

Improve dingo_ls #124

Closed stephengreen closed 1 year ago

stephengreen commented 1 year ago

Improve dingo_ls so that it prints additional information depending on the type of dataset contained in an HDF5 file, i.e., not just the settings dict. For example, for a Result it could print a summary of the evidence, as well as importance sampling settings (if present).

This would require loading the dataset as the correct subtype of DingoDataset. To determine this, we could embed an additional attribute in the HDF5 files, which specifies the object type that it should be loaded with. With this we could also define a universal load function to return an object of the correct type.