Skip to content

Commit

Permalink
update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 15, 2019
1 parent 99b23e3 commit 1b11ec9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[run]
source = ogs5py
omit =
*docs*
*examples*
*tests*
ogs5py/reader/*
ogs5py/fileclasses/msh/gmsh.py
ogs5py/fileclasses/msh/viewer.py
ogs5py/fileclasses/msh/checker.py
ogs5py/fileclasses/gli/checker.py

[report]
exclude_lines =
pragma: no cover
if __name__ == '__main__':
def __repr__
def __str__
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.orig
*~
.spyproject/
htmlcov/
__pycache__
info/
docs/build
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All notable changes to **ogs5py** will be documented in this file.
* ``GMSH`` interface was updated to new meshio-API: https://github.com/GeoStat-Framework/ogs5py/commit/d3e05941a7a76a6d6fdf53a148af7b196fede66a

### Additions
* ``download_ogs`` downloads a system dependent OGS5 executable: https://github.com/GeoStat-Framework/ogs5py/commit/ede32e411785b51cdd0983a924c3c7ea117ab026
* ``MSH.import_mesh`` now allows the import of material_id and element_id if given as cell_data in the external mesh: https://github.com/GeoStat-Framework/ogs5py/commit/00a77fae9d492eb16872443e9be4262d4515da27
* ``MSH.export_mesh`` now automatically exports material_id (already the case before) and element_id.
Also you can now export additional ``point_data`` and ``field_data``: https://github.com/GeoStat-Framework/ogs5py/commit/00a77fae9d492eb16872443e9be4262d4515da27
Expand Down
3 changes: 3 additions & 0 deletions tests/test_ogs5py.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def test_pump(self):
self.assertTrue(len(self.time) == len(self.head) == 16)
self.assertAlmostEqual(self.head[-1], -0.55744648, places=3)

self.model.gen_script(os.path.join(self.ogs_path, "script"))
self.model.load_model(self.model.task_root)


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

0 comments on commit 1b11ec9

Please sign in to comment.