<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"> c = blitzcon.c</div>
s = c.sf<br></blockquote><div><br></div><div>lol, yup that's pretty much exactly the thing that I was trying to find. Will pointed me to the BlitzGateway as well and showed me how to do what I wanted with some other tricks. One was to use <font class="Apple-style-span" face="'courier new', monospace">omero.util.script_utils.downloadPlane(RawPixelsStore, pixels, z,c,t)</font></div>
<div><br></div><div>Given what you just told me I see that I could do this instead:</div><div><font class="Apple-style-span" face="'courier new', monospace">blitzcon.c.sf.createGateway().getPlane(pixels_id, z, c, t, _ctx=None)</font></div>
<div><br></div><div>Sadly, I have no clue what the difference between the two options is except that I don't need to create a RawPixelsStore object in the latter case. Any sagely advice for me here?</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
But do note that we are in the process of refactoring BlitzGateway to unify its<br>
methods with those in Insight so this API should be considered internal for the<br>
moment. If you have suggestions, we'd love to hear them.<br></blockquote><div><br></div><div>Ah, this came up before but I think I misunderstood and thought the reference was to the other omero.gateway thing (session.createGateway()). This is definitely very concerning as I don't want to write something that becomes instantly useless. Should I do what I was doing before with omero.client(...) and client.createSession(...)?</div>
<div><br></div><div>A few suggestions:</div><div><ul><li>Retain as much backwards compatibility as possible.</li><li>If BlitzGateway is the thing that programmers should use for 90% of their needs, then make that obvious in the documentation/wiki somehow. </li>
<li>From my perspective, getting images and image metadata is the most important thing. So the easier (and faster) that is, the happier I am.</li></ul><div>The wiki has been very useful so far, particularly <a href="http://trac.openmicroscopy.org.uk/omero/wiki/OmeroPy/Gateway">omeropy/gateway</a>. However, since I first looked at the <a href="http://trac.openmicroscopy.org.uk/omero/wiki/OmeroPy">omeropy</a> page, I got the impression that I should be getting at everything from:</div>
<div><font class="Apple-style-span" face="'courier new', monospace">>>>c = omero.client(host)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">>>>s = c.createSession(user, pw)</font></div>
<div>So the first thing I did was start digging:</div><div><font class="Apple-style-span" face="'courier new', monospace">>>>help(c)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">>>>help(s)</font></div>
<div>...and even now I'm still conflicted as to whether I should just be using this as opposed to BlitzGateway, I suppose the decision would be easier if BlitzGateway wasn't in a state of flux.</div><div><br></div>
<div>In the future I'll be wanting to write data back to the database, so I'm sure I'll have more comments when I cross that bridge.</div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Very likely, as soon as the client is inactive for 10 minutes or so. You can</div>
start by using the "omero.keep_alive" property<br></blockquote><div><br></div><div>I just discovered I that I can get at all the properties through blitzcon.c.getPropertyMap(). This is very useful. I don't see a setProperty function at that level, but could I do something like this?</div>
<meta charset="utf-8"><div><font class="Apple-style-span" face="'courier new', monospace">blitzcon.c.getProperties().setProperty('omero.keep_alive', 123456)</font></div><div><br></div><div>Thanks,</div><div>
Adam</div></div>