I'd suggest to rename this partial function to also tof2ev as it will just use the local scope. Using pfunc is not fully explanatory. _Originally posted by @zain-sohail in https://github.com/OpenCOMPES/sed/pull/411#discussion_r1679825988_ Also, consider revising parameter names (e.g. vals, features)