This comment applies to the pattern of this code block across many of the `workflows/scripts` files. Consider adding a utility function which can help perform some of this work to avoid the repetition of these edits. For example, could the benchmark_dir be resolved and a `bin` path created for each of these with a function? Similarly, consider a custom decorator function help run the same workflows with/without `enable_profiling` (to avoid the duplicate calls to, for example, `build_consensus` with differing context).
_Originally posted by @d33bs in https://github.com/WayScience/CytoSnake/pull/90#discussion_r1380859141_
There must be a way on how to make
memray
api importable in order to reduce the function call .