Re: [GRASS-dev] Python equivalent of piping results from one function to another

2015-10-19 Thread Paulo van Breugel
On 19-10-15 07:12, Pietro wrote: Dear Paulo, On Sun, Oct 18, 2015 at 8:03 PM, Paulo van Breugel wrote: What would be the python equivalent of: r.category mymap | r.category mymap rules=- Let's split the problem in two step. First capture the output of a module (the python equivalent of ba

Re: [GRASS-dev] Python equivalent of piping results from one function to another

2015-10-18 Thread Pietro
Dear Paulo, On Sun, Oct 18, 2015 at 8:03 PM, Paulo van Breugel wrote: > What would be the python equivalent of: > > r.category mymap | r.category mymap rules=- Let's split the problem in two step. First capture the output of a module (the python equivalent of bash pipe): {{{ >>> from subproce

[GRASS-dev] Python equivalent of piping results from one function to another

2015-10-18 Thread Paulo van Breugel
What would be the python equivalent of: r.category mymap | r.category mymap rules=- I have been looking at the pygrass interface , but I didn't understand things well enough to see how to proceed. A