Closed stolarczyk closed 1 year ago
I think the behavior of the validation functions should be consistent, i.e. the validate_inputs
should raise exceptions or warnings if required_files
or files
are missing, respectively. And the file size calculation should be implemented elsewhere (looper).
The
validate_inputs
function behaves differently and has more responsibilities than other validation functions, which was dictated by our use case in looper. Instead of raising an exception, it records missing files and calculates their sizes. Here's an example:So based on this output it is the responsibility of the client software to decide what to do in case one or more files are missing.
Originally posted by @stolarczyk in https://github.com/pepkit/eido/issues/26#issuecomment-916345976