<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Ahh – ok. I almost had it – I tried setting adjTable using a whole 4x4 numpy.array - but I neglected to try using a whole 4x4 python array.</div><div><br></div><div>This is perfect – no need to set individual elements from my perspective! :)</div><div><br></div><div>Thanks again,</div><div>Chris</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> James Porter <<a href="mailto:jvporter@wisc.edu">jvporter@wisc.edu</a>><br><span style="font-weight:bold">Date: </span> Thu, 16 Feb 2012 15:13:23 -0500<br><span style="font-weight:bold">To: </span> Christopher Mueller <<a href="mailto:cmueller@asascience.com">cmueller@asascience.com</a>><br><span style="font-weight:bold">Cc: </span> Iulian Grindeanu <<a href="mailto:iulian@mcs.anl.gov">iulian@mcs.anl.gov</a>>, Tim Tautges <<a href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>>, "<a href="mailto:moab-dev@mcs.anl.gov">moab-dev@mcs.anl.gov</a>" <<a href="mailto:moab-dev@mcs.anl.gov">moab-dev@mcs.anl.gov</a>>, Guy De Wardener <<a href="mailto:gdewardener@asascience.com">gdewardener@asascience.com</a>>, David Stuebe <<a href="mailto:DStuebe@asascience.com">DStuebe@asascience.com</a>>, don brittain <<a href="mailto:don.brittain@instanteffects.com">don.brittain@instanteffects.com</a>><br><span style="font-weight:bold">Subject: </span> Re: [MOAB-dev] Questions about Tags and Topology<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div><div>On Thu, 2012-02-16 at 15:05 -0500, Christopher Mueller wrote:</div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div> Hi Jim,</div><div> </div><div> </div><div> I've grabbed revision r5398 and re-installed pytaps. The error I was</div><div> getting before ("AttributeError: attribute 'adjTable' of</div><div> 'itaps.iMesh.Mesh' objects is not writable") no longer occurs (which</div><div> suggests that the re-install worked), I still seem to be unable to</div><div> modify the values of the table. Am I doing something foolish?</div></blockquote><div><br></div><div>You'll need to set the whole table, like so:</div><div><br></div><div>mesh.adjTable = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]</div><div><br></div><div>Currently, you're getting a *copy* of the adjTable and changing the</div><div>values, which won't affect the original. If there's a lot of demand for</div><div>setting individual elements of the adjTable, I can add that, but it's</div><div>quite a bit more complicated than what I have now.</div><div><br></div><div>- Jim</div><div><br></div><div><br></div><div><br></div></div></div></blockquote></span></body></html>