Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/gimli-org/gimli into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
halbmy committed Dec 13, 2024
2 parents a149879 + 62c40a7 commit fdde68b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygimli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ else()
add_custom_target(whl${TARGET_NAME}PackageBuild DEPENDS whlpgcore
COMMAND "${Python_EXECUTABLE}" -m pip wheel . --wheel-dir=${WHEELHOUSE} --find-links ${WHEELHOUSE}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Building python wheel package for ${TARGET_NAME}"
COMMENT "Building python wheel package (${WHEELFILE}) for ${TARGET_NAME}"
)

add_custom_target(whl${TARGET_NAME} DEPENDS whl${TARGET_NAME}PackageBuild)
Expand All @@ -59,12 +59,12 @@ else()
add_custom_target(whl${TARGET_NAME}TestInstall DEPENDS whl${TARGET_NAME} DEPENDS whlpgcoreTestRun
COMMAND "${Python3_EXECUTABLE}" -m pip uninstall -y ${TARGET_NAME}
COMMAND "${Python3_EXECUTABLE}" -m pip install ${WHEELHOUSE}/${PY_WHEELFILE} --quiet --find-links ${WHEELHOUSE}
COMMENT "Installing ${TARGET_NAME} in virtual test environment"
COMMENT "Installing ${TARGET_NAME} ((${WHEELFILE}) in virtual test environment"
)
add_custom_target(whl${TARGET_NAME}TestRun DEPENDS whl${TARGET_NAME}TestInstall
COMMAND ${Python3_EXECUTABLE} -c "import pygimli as pg; pg.version()"
VERBATIM
COMMENT "Testing ${TARGET_NAME} installation in virtual test environment. ${Python3_EXECUTABLE} -c \'import pygimli as pg; pg.version()\'"
COMMENT "Testing ${TARGET_NAME} installation (${WHEELFILE}) in virtual test environment. ${Python3_EXECUTABLE} -c \'import pygimli as pg; pg.version()\'"
)
add_custom_target(whl${TARGET_NAME}Test DEPENDS whl${TARGET_NAME}TestRun)

Expand Down
3 changes: 3 additions & 0 deletions pygimli/meshtools/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def createMesh(poly, quality=32, area=0.0, smooth=None, switches=None,
>>> ax, _ = pg.show(mt.createMesh(rect, quality=33, area=0.01))
>>> pg.wait()
"""
#mpl somehow/somewhere changes locale back tu system settings
pg.checkAndFixLocaleDecimal_point()

# poly == [pg.Mesh, ]
if isinstance(poly, list):
if isinstance(poly[0], pg.Mesh):
Expand Down
3 changes: 3 additions & 0 deletions pygimli/testing/test_SparseMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_BlockMatrix(self):
B.add(A, 10, 10)
print(B)


def test_Misc(self):
D = pg.SparseMapMatrix(3, 4)
for i in range(D.rows()):
Expand All @@ -182,5 +183,7 @@ def test_Misc(self):
np.testing.assert_allclose(D.row(2), [1.0, 0.0, 1.0, 1.0])




if __name__ == '__main__':
unittest.main()

0 comments on commit fdde68b

Please sign in to comment.