dingo-gw / dingo

Dingo: Deep inference for gravitational-wave observations
MIT License
60 stars 20 forks source link

Improve the identification of SVD basis file in dingo_ls. #91

Closed stephengreen closed 2 years ago

stephengreen commented 2 years ago

This is a minor change to try to identify the contents of an HDF5 file for the dingo_ls command.

We require special handling for files that contain only an SVD basis, and previously I was identifying this based on the file name. However, this was confusing some intermediate files produced during condor dataset generation. Now, we use a try-except statement.

If anybody has a better idea to make this cleaner, I'm open to suggestions.