githubgphl / imginfo

Extract useful meta-data for MX data processing
Other
0 stars 5 forks source link

strcmp/strncmp & detector info #2

Closed githubgphl closed 2 months ago

githubgphl commented 2 months ago

If we really can't get any detector serial number, at least have a look at /entry/instrument/name (which sometimes carries meaningful info).

Change to using strncmp instead of strcmp when handling HDF5 string data: we can't rely on it being null-terminated.