Skip to content

Commit

Permalink
Added a test to count fault triangles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Serrano committed Jan 23, 2018
1 parent 5292412 commit a6ecaa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geomodelr/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,11 @@ def test_horizontal_models(self):

def test_faults_above(self):
this_dir, this_filename = os.path.split(__file__)
m = model.model_from_file(os.path.join(this_dir, 'test_files', 'Modelo_Hidro.json'))
m = model.model_from_file(os.path.join(this_dir, 'test_files', 'Modelo_Argos.json'))
self.assertEqual( [ len(m.faults[k]) for k in sorted(m.faults.keys()) ], [171, 131, 229, 137] )
self.assertEqual( [ len(m.not_extended_faults[k]) for k in sorted(m.faults.keys()) ], [141, 112, 229, 137] )



# Test that you can load and test aburra Valley. Test grids and volumes.
def test_aburra_valley(self):
Expand Down

0 comments on commit a6ecaa8

Please sign in to comment.