Using the pyhydrophone package is preferred way to pull sensitivity from the Soundtrap serial number and model type.
Propose adding to the globalAtttribute file
INSTRUMENT_NAME=AUTOGENERATE
INSTRUMENT_SN=AUTOGENERATE
to globalAttributes.yml
then using pyhydrophone to populate the sensitivity and gain.
The hydrophone serial numbers are not necessarily unique to the hydrophone. Workaround is if there is an error, along the lines of "There are multiple instruments," error, this returns dict_key with the possible instruments" which can be parsed.
@cparcerisas can provide more details and examples