-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
46 lines (41 loc) · 1.1 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from collections import namedtuple
LARGE_DIM = 1024
SMALL_DIM = 300
RECHUNK_SIZE = 512
BIOFORMATS_NUM_WORKERS = 60
# This is expected to be less than the available memory for a dask worker
# Ref em_workflows/config:SLURM_exec
JAVA_MAX_HEAP_SIZE = "-Xmx40G"
# Refer to AssetType.yaml in documentation source for reference
ASSET_TYPE = namedtuple(
"ASSET_TYPE",
[
"THUMBNAIL",
"AVERAGED_VOLUME",
"KEY_IMAGE",
"REC_MOVIE",
"TILT_MOVIE",
"VOLUME",
"NEUROGLANCER_PRECOMPUTED",
"NEUROGLANCER_ZARR",
],
)
AssetType = ASSET_TYPE(
"thumbnail",
"averagedVolume",
"keyImage",
"recMovie",
"tiltMovie",
"volume",
"neuroglancerPrecomputed",
"neuroglancerZarr",
)
# SO refers to spatial omics
NFS_MOUNT = {
"RMLEMHedwigDev": "/mnt/ai-fas12/RMLEMHedwigDev",
"RMLEMHedwigQA": "/mnt/ai-fas12/RMLEMHedwigQA",
"RMLEMHedwigProd": "/mnt/ai-fas12/RMLEMHedwigProd",
"RMLSOHedwigDev": "/mnt/ai-fas12/RMLSOHedwigDev",
"RMLSOHedwigQA": "/mnt/ai-fas12/RMLSOHedwigQA",
"RMLSOHedwigProd": "/mnt/ai-fas12/RMLSOHedwigProd",
}