[MOAB-dev] Questions about Tags and Topology
Christopher Mueller
cmueller at asascience.com
Thu Feb 16 14:05:01 CST 2012
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?
In [1]: from itaps import iMesh
In [2]: mesh=iMesh.Mesh()
In [3]: mesh.adjTable
Out[3]:
array([[7, 4, 4, 1],
[1, 7, 5, 5],
[1, 5, 7, 5],
[1, 5, 5, 7]], dtype=int32)
In [4]: mesh.adjTable[1,1]=1
In [5]: mesh.adjTable
Out[5]:
array([[7, 4, 4, 1],
[1, 7, 5, 5],
[1, 5, 7, 5],
[1, 5, 5, 7]], dtype=int32)
In [6]: tbl=mesh.adjTable
In [7]: tbl[1,1]=1
In [8]: tbl
Out[8]:
array([[7, 4, 4, 1],
[1, 1, 5, 5],
[1, 5, 7, 5],
[1, 5, 5, 7]], dtype=int32)
In [9]: mesh.adjTable=tbl
In [10]: mesh.adjTable
Out[10]:
array([[7, 4, 4, 1],
[1, 7, 5, 5],
[1, 5, 7, 5],
[1, 5, 5, 7]], dtype=int32)
Thanks,
Chris
From: James Porter <jvporter at wisc.edu<mailto:jvporter at wisc.edu>>
Date: Thu, 16 Feb 2012 14:29:38 -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 12:42 -0500, Christopher Mueller wrote:
Thank you for the very quick replies on this – the modification worked
perfectly!
As of r5398, you can set the adjTable in PyTAPS.
- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20120216/e9a4ac0e/attachment.htm>
More information about the moab-dev
mailing list