[MOAB-dev] Questions about Tags and Topology

Christopher Mueller cmueller at asascience.com
Thu Feb 16 14:20:47 CST 2012


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.

This is perfect – no need to set individual elements from my perspective! :)

Thanks again,
Chris

From: James Porter <jvporter at wisc.edu<mailto:jvporter at wisc.edu>>
Date: Thu, 16 Feb 2012 15:13:23 -0500
To: Christopher Mueller <cmueller at asascience.com<mailto:cmueller at asascience.com>>
Cc: Iulian Grindeanu <iulian at mcs.anl.gov<mailto:iulian at mcs.anl.gov>>, Tim Tautges <tautges at mcs.anl.gov<mailto:tautges at mcs.anl.gov>>, "moab-dev at mcs.anl.gov<mailto:moab-dev at mcs.anl.gov>" <moab-dev at mcs.anl.gov<mailto:moab-dev at mcs.anl.gov>>, Guy De Wardener <gdewardener at asascience.com<mailto:gdewardener at asascience.com>>, David Stuebe <DStuebe at asascience.com<mailto:DStuebe at asascience.com>>, don brittain <don.brittain at instanteffects.com<mailto:don.brittain at instanteffects.com>>
Subject: Re: [MOAB-dev] Questions about Tags and Topology

On Thu, 2012-02-16 at 15:05 -0500, Christopher Mueller wrote:
Hi Jim,
I've grabbed revision r5398 and re-installed pytaps.  The error I was
getting before ("AttributeError: attribute 'adjTable' of
'itaps.iMesh.Mesh' objects is not writable") no longer occurs (which
suggests that the re-install worked), I still seem to be unable to
modify the values of the table.  Am I doing something foolish?

You'll need to set the whole table, like so:

mesh.adjTable = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]

Currently, you're getting a *copy* of the adjTable and changing the
values, which won't affect the original. If there's a lot of demand for
setting individual elements of the adjTable, I can add that, but it's
quite a bit more complicated than what I have now.

- Jim



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20120216/990b820a/attachment.htm>


More information about the moab-dev mailing list