Skip to content

Commit

Permalink
update src_rec
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Mar 14, 2024
1 parent e10e049 commit 4e107bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@ dmypy.json
.vscode
.DS_store
crust_model/
*.xmf
*.xmf

test_src_rec_eg
9 changes: 8 additions & 1 deletion test/test_src_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ def test_subcase_04(self):
sr.add_noise()
sr.add_noise(shape='uniform')

def test_subcase_05(self):
sr = SrcRec.read(self.fname)
sr.select_depth([0, 10])
assert sr.src_points.shape[0] == 1413 and sr.rec_points.shape[0] == 11226


if __name__ == '__main__':
tsr = TestSrcRec()
tsr.test_subcase_03()
tsr.test_subcase_05()


0 comments on commit 4e107bd

Please sign in to comment.