Skip to content

Commit ea41b24

Browse files
authored
Add test for prolate spheroid (#219)
* Add test for prolate spheroid * Remove fixme message
1 parent 9ba2f43 commit ea41b24

File tree

2 files changed

+4011
-3
lines changed

2 files changed

+4011
-3
lines changed

tests/test_morphshape.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ def test_morph(self, setup):
4545

4646
class TestMorphSpheroid:
4747
# Common configs for testing MorphSpheroid and MorphISpheroid
48-
# FIXME: add test data for prolate spheroids
4948
config_sphere = {"radius": 17.5, "pradius": 17.5}
5049
config_oblate = {"radius": 17.5, "pradius": 5.0}
51-
spheroid_configs = [config_sphere, config_oblate]
50+
config_prolate = {"radius": 5.0, "pradius": 17.5}
51+
spheroid_configs = [config_sphere, config_oblate, config_prolate]
5252
iconfig_sphere = {"iradius": 17.5, "ipradius": 17.5}
5353
iconfig_oblate = {"iradius": 17.5, "ipradius": 5.0}
54-
ispheroid_configs = [iconfig_sphere, iconfig_oblate]
54+
iconfig_prolate = {"iradius": 5.0, "ipradius": 17.5}
55+
ispheroid_configs = [iconfig_sphere, iconfig_oblate, iconfig_prolate]
5556

5657
# Files used for testing
5758
flag_inverse = (
@@ -60,6 +61,7 @@ class TestMorphSpheroid:
6061
testfiles = [
6162
["ni_qmax25.cgr", "ni_qmax25_psize35.cgr"], # Sphere
6263
["ni_qmax25.cgr", "ni_qmax25_e17.5_p5.0.cgr"], # Oblate spheroid
64+
["ni_qmax25.cgr", "ni_qmax25_e5.0_p17.5.cgr"], # Prolate spheroid
6365
]
6466
testfile = [] # Initialize testfile array
6567

0 commit comments

Comments
 (0)