The current initialization of DeseqDataSet always overwrites its Inference object's n_cpus. So no matter which value is specified for n_cpus when declaring an Inference object, when passed to DeseqDataSet, its n_cpus is always overwritten to use all available vCPUs.
My implementation just restricts that Inference's n_cpus can only be overwritten if DeseqDataSet's n_cpus is not None.
Reference Issue or PRs
This PR is to fix Issue #288 .
What does your PR implement? Be specific.
The current initialization of
DeseqDataSet
always overwrites itsInference
object'sn_cpus
. So no matter which value is specified forn_cpus
when declaring anInference
object, when passed toDeseqDataSet
, itsn_cpus
is always overwritten to use all available vCPUs.My implementation just restricts that Inference's
n_cpus
can only be overwritten if DeseqDataSet'sn_cpus
is notNone
.