Skip to content

Commit ee370fb

Browse files
authored
explicitly define init of BaseProvider (#1972)
XarrayEDRProvider was initializing XarrayProvider twice- once through the BaseEDRProvider due to MRO and once explicitly. this slowed down the initialization since the XarrayProvider was called twice (which causes all datasets to be lazy loaded twice).
1 parent 94b0b3d commit ee370fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygeoapi/provider/base_edr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, provider_def):
5252
:returns: pygeoapi.provider.base_edr.BaseEDRProvider
5353
"""
5454

55-
super().__init__(provider_def)
55+
BaseProvider.__init__(self, provider_def)
5656

5757
# self.instances = []
5858

0 commit comments

Comments
 (0)