Commit 8f8b315c authored by Martin Schorb's avatar Martin Schorb
Browse files

solve new stack with proper resolution

parent fcb2e3a4
Pipeline #23891 failed with stage
in 23 seconds
{
"render": {
"host": "render.embl.de",
"host": "http://render.embl.de",
"port": 8080,
"owner": "SBEM",
"project": "tests",
......
......@@ -17,6 +17,8 @@ import os
import importlib
import json
import renderapi
import params
from app import app
......@@ -24,7 +26,6 @@ from app import app
from utils import pages,launch_jobs
from utils import helper_functions as hf
from callbacks import runstate,render_selector,substack_sel,match_selector,tile_view
......@@ -315,6 +316,18 @@ def solve_execute_gobutton(click,matchcoll,outstack,tform,stype,comp_sel,startse
err_file = log_file + '.err'
log_file += '.log'
# copy resolution metadata to the new output stack
render = renderapi.Render(host=rp['render']['host'],port=rp['render']['port'],client_scripts=rp['render']['client_scripts'])
orig_meta = render.run(renderapi.stack.get_stack_metadata,stack,owner=owner,project=project)
render.run(renderapi.stack.create_stack,outstack,
stackResolutionX=orig_meta.stackResolutionX,
stackResolutionY=orig_meta.stackResolutionY,
stackResolutionZ=orig_meta.stackResolutionZ,
owner=owner,project=project)
solve_generate_p = launch_jobs.run(target=comp_sel,pyscript='$rendermodules/rendermodules/solver/solve.py',
json=param_file,run_args=None,target_args=None,logfile=log_file,errfile=err_file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment