Changeset 3159f5d for fedd/federation
- Timestamp:
- Mar 17, 2010 2:27:33 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 1dcaff4
- Parents:
- 76441b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/split.py
r76441b6 r3159f5d 5 5 import tempfile 6 6 import logging 7 import topdl 7 8 8 9 from util import * … … 128 129 129 130 130 tclcmd = [self.tclsh, self.tcl_splitter, '- s', '-x',131 tclcmd = [self.tclsh, self.tcl_splitter, '-t', '-x', 131 132 str(self.muxmax), '-m', master] 132 133 if include_fedkit: tclcmd.append('-k') … … 135 136 tclparser = subprocess.Popen(tclcmd, stdout=subprocess.PIPE) 136 137 137 out = "" 138 # Package up the split data 139 for line in tclparser.stdout: 140 out += line 138 top = topdl.topology_from_xml(file=tclparser.stdout, top="experiment") 141 139 142 140 # Walk up tmpdir, deleting as we go … … 148 146 os.rmdir(tmpdir) 149 147 150 resp = { 'output' : out } 148 resp = { 149 'experimentdescription': { 150 'topdldescription': top.to_dict(), 151 } 152 } 151 153 152 154 return resp
Note: See TracChangeset
for help on using the changeset viewer.