Replicate DOLfYN IO functionality similarly to https://github.com/MHKiT-Software/MHKiT-Python/pull/126