sofacoustics / SOFAtoolbox

SOFA Toolbox (API for Matlab, Octave)
http://sofaconventions.org
European Union Public License 1.2
116 stars 31 forks source link

check existance of fields when comparing CTF object to SOFA convention of newly fetched SOFA object #71

Closed germknoedlspeck closed 1 year ago

germknoedlspeck commented 1 year ago

added for loop including if statements to check for fields before attempting to remove them.

This avoids errors when converting HRTF to DTF objects that include non-mandatory fields.