Skip to content

Commit

Permalink
1.0.6, add, static ndim property to pg.Vector, pg.Matrix etc.; fix #131
Browse files Browse the repository at this point in the history
…, add to tests
  • Loading branch information
carsten-forty2 committed Feb 2, 2018
1 parent 07b8106 commit 61c4a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions python/pygimli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def RMatrix_len(self):
_pygimli_.IndexArray.ndim = 1
_pygimli_.RMatrix.ndim = 2
_pygimli_.R3Vector.ndim = 2
_pygimli_.stdVectorRVector3 = 2
_pygimli_.stdVectorRVector3.ndim = 2

############################
# Iterator support for RVector allow to apply python build-ins
Expand Down Expand Up @@ -684,7 +684,6 @@ def __stdVectorRVector3ArrayCall(self, dtype=None):
#if idx is not None:
#print(self)
#print(idx)
#raise Exception("we need to fix this")
return _pygimli_.stdVectorRVector3ToR3Vector(self).array()

_pygimli_.stdVectorRVector3.__array__ = __stdVectorRVector3ArrayCall
Expand Down
2 changes: 1 addition & 1 deletion python/pygimli/meshtools/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def createGrid(**kwargs):
>>> mesh = pg.meshtools.createGrid(x=[0, 1, 1.5, 2],
... y=[-1, -0.5, -0.25, 0], marker=2)
>>> print(mesh)
Mesh: Nodes: 9 Cells: 4 Boundaries: 12
Mesh: Nodes: 16 Cells: 9 Boundaries: 24
>>> _ = pg.show(mesh)
>>> pg.wait()
"""
Expand Down

0 comments on commit 61c4a73

Please sign in to comment.