mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 17:19:08 +09:00
fixes
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import os
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
import job
|
||||
import pipelines
|
||||
|
||||
def main(config_yaml):
|
||||
|
||||
with open(config_yaml, 'r') as f:
|
||||
config = yaml.safe_load(f)
|
||||
|
||||
|
||||
job_types = {
|
||||
'random+sobo': job.sobo_job
|
||||
'random+sobo': pipelines.sobo_pipeline
|
||||
}
|
||||
|
||||
job_types[config['job']['type']](config)
|
||||
|
||||
+6
-1
@@ -1,3 +1,8 @@
|
||||
from .base import PtychoEngine
|
||||
from .ptycho_example import ExamplePtychoEngine
|
||||
from .fold_slice import FoldSlicePtychoEngine
|
||||
from .fold_slice import FoldSlicePtychoEngine
|
||||
|
||||
engines = {
|
||||
'fake': ExamplePtychoEngine,
|
||||
'fold_slice': FoldSlicePtychoEngine
|
||||
}
|
||||
Reference in New Issue
Block a user