<div dir="ltr">Hello all,<div><br></div><div>I am trying to use the pygrass API to create a contextmanager that set's a temporary Region, but I am not sure which method I should be using. The following methods seem to be relevant:<br><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">Region.set_current()</font></div><div><font face="monospace, monospace">Region.set_raster_region()</font></div><div><font face="monospace, monospace">Region.write()</font></div></blockquote></div><div><br></div><div>Could someone further clarify when each one should be used?</div><div><br></div><div>all the best,</div><div>Panos</div><div><br></div></div>