Skip to content

Commit adbd54f

Browse files
authored
Merge pull request #63 from janelia-cellmap/update_fly_json
update fly models yaml
2 parents b89ccec + 31b22e6 commit adbd54f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

cellmap_flow/cli/fly_model.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
queue = "gpu_a100"
2-
charge_group = "cellmap"
3-
41
import os
52
import yaml
63

@@ -11,7 +8,8 @@
118
import threading
129
from cellmap_flow.globals import Flow
1310
from 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

1614
import 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():

0 commit comments

Comments
 (0)