Convert `nworkers` to `int` initially
Convert `nworkers` to `int` initially

Instead of converting `nworkers` to `int` in one place and not in
others, simply perform the conversion of `nworkers` at the beginning and
then reuse the `int` result in later steps.

nanshe-org/nanshe_workflow,DudLab/nanshe_workflow