File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1- queue = "gpu_a100"
2- charge_group = "cellmap"
3-
41import os
52import yaml
63
118import threading
129from cellmap_flow .globals import Flow
1310from cellmap_flow .utils .data import FlyModelConfig
14-
11+ from cellmap_flow .utils .serilization_utils import get_process_dataset
12+ from cellmap_flow .globals import g
1513
1614import sys
1715
@@ -24,7 +22,16 @@ def main():
2422 data = yaml .safe_load (f )
2523
2624 zarr_grp_path = data ["input" ]
27- g .queue = queue
25+ json_data = data .get ("json_data" , None )
26+
27+ if json_data :
28+ g .input_norms , g .postprocess = get_process_dataset (json_data )
29+
30+ queue = data .get ("queue" , "gpu_h100" )
31+ if "charge_group" not in data :
32+ raise ValueError ("charge_group is required in the YAML file" )
33+ charge_group = data ["charge_group" ]
34+
2835 g .charge_group = charge_group
2936 threads = []
3037 for run_name , run_items in data ["runs" ].items ():
You can’t perform that action at this time.
0 commit comments