File tree Expand file tree Collapse file tree
sbndcode/WireCell/cfg/pgrapher/experiment/sbnd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ local dnnroi_model_p1 = std.extVar('dnnroi_model_p1');
3333local g = import 'pgraph.jsonnet' ;
3434local f = import 'pgrapher/experiment/sbnd/funcs.jsonnet' ;
3535local wc = import 'wirecell.jsonnet' ;
36- local default_tools = tools_maker(params);
37- local tools = if wc_device == 'gpu' then std.mergePatch (default_tools,
38- {dft: {type: "TorchDFT" , data: {device: wc_device}}}) else default_tools;
36+ local tools_maker = import 'pgrapher/common/tools.jsonnet' ;
3937
4038local simu_params = import 'simparams.jsonnet' ;
4139local params = simu_params;
4240
43- local tools = tools_maker(params);
41+ local default_tools = tools_maker(params);
42+ local tools = if wc_device == 'gpu' then std.mergePatch (default_tools,
43+ {dft: {type: "TorchDFT" , data: {device: wc_device}}}) else default_tools;
44+
4445
4546local mega_anode = {
4647 type: 'MegaAnodePlane' ,
You can’t perform that action at this time.
0 commit comments