WayScience / CytoSnake

Orchestrating high-dimensional cell morphology data processing pipelines
https://cytosnake.readthedocs.io
Creative Commons Attribution 4.0 International
3 stars 3 forks source link

Reduce Code Duplication Due To Profiling Design #95

Open axiomcura opened 1 year ago

axiomcura commented 1 year ago
          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 .