git @ Cat's Eye Technologies SixtyPical / bd462d6
Include more info in --dump-exit-contexts. Chris Pressey 2 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
140140 )
141141
142142 def to_json_data(self):
143 type_ = self.routine.location.type
143144 return {
145 'routine_inputs': ','.join(sorted(loc.name for loc in type_.inputs)),
146 'routine_outputs': ','.join(sorted(loc.name for loc in type_.outputs)),
147 'routine_trashes': ','.join(sorted(loc.name for loc in type_.trashes)),
144148 'touched': ','.join(sorted(loc.name for loc in self._touched)),
145149 'range': dict((loc.name, '{}-{}'.format(rng[0], rng[1])) for (loc, rng) in self._range.items()),
146150 'writeable': ','.join(sorted(loc.name for loc in self._writeable)),