Skip to content
Snippets Groups Projects
Commit 33bcbdb4 authored by Constantin Pape's avatar Constantin Pape
Browse files

Restrict numpy threads for morphology extraction

parent 950f116b
No related branches found
No related tags found
1 merge request!2Merge versioning and scripts into master
......@@ -4,8 +4,13 @@ import os
import sys
import json
import luigi
# this is a task called by multiple processes,
# so we need to restrict the number of threads used by numpy
from cluster_tools.utils.numpy_utils import set_numpy_threads
set_numpy_threads(1)
import numpy as np
import luigi
import pandas as pd
import nifty.tools as nt
from skimage.measure import regionprops, marching_cubes_lewiner, mesh_surface_area
......@@ -22,7 +27,6 @@ from cluster_tools.cluster_tasks import SlurmTask, LocalTask
#
# FIXME something in here uses a lot of threads
class MorphologyBase(luigi.Task):
""" Morphology base class
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment