Skip to content

Commit f5ff69d

Browse files
committed
Add all existing *_collection_regions to unit test TestBin2d
FYI: `global_region` would be another candidate, but takes too much time (~2min loading + ~5min per loop + ~4s per vect).
1 parent d7f51bb commit f5ff69d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/test_regions.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
import numpy
55

6-
from csep.core.regions import italy_csep_region, california_relm_region, nz_csep_region
6+
from csep.core.regions import (
7+
italy_csep_region, italy_csep_collection_region,
8+
california_relm_region, california_relm_collection_region,
9+
nz_csep_region, nz_csep_collection_region,
10+
)
711

812
def get_italy_region_fname():
913
root_dir = os.path.dirname(os.path.abspath(__file__))
@@ -96,8 +100,12 @@ def setUpClass(cls):
96100
# (loading those is the bottleneck of this test case)
97101
cls.regions = [
98102
italy_csep_region(),
103+
italy_csep_collection_region(),
99104
california_relm_region(),
100-
nz_csep_region()
105+
california_relm_collection_region(),
106+
nz_csep_region(),
107+
nz_csep_collection_region(),
108+
# global_region() # extreme slow-down (~2min loading + ~5min per loop + ~4s per vect)
101109
]
102110

103111
def test_bin2d_regions_origins(self):

0 commit comments

Comments
 (0)