Commit 3dd130e8 authored by Peter Lustig's avatar Peter Lustig

Created myfunctions with job distribution function.

parent abca5cb8
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
def Distribute_Njobs(n_cpu, n_jobs):
n = np.repeat(int(n_jobs/n_cpu), n_cpu)
n[0:n_jobs%n_cpu] += 1
return n
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment