Skip to content

Commit 8b3501a

Browse files
authored
Merge pull request #55 from ISI-MIP/refactor/remove-cached-property
Use functools' cached_property
2 parents fd4c69c + 6702282 commit 8b3501a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

isimip_publisher/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
from functools import cached_property
23
from pathlib import Path
34
from urllib.parse import urlparse
45

@@ -7,7 +8,6 @@
78
from isimip_utils.exceptions import ConfigError
89
from isimip_utils.fetch import fetch_json, load_json
910
from isimip_utils.protocol import fetch_definitions, fetch_pattern, fetch_schema, fetch_tree
10-
from isimip_utils.utils import cached_property
1111

1212
logger = logging.getLogger(__name__)
1313

isimip_publisher/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import logging
2+
from functools import cached_property
23
from pathlib import Path
34

45
import jsonschema
56
from isimip_utils.checksum import get_checksum, get_checksum_type
67
from isimip_utils.netcdf import get_dimensions, get_global_attributes, get_variables, open_dataset_read
7-
from isimip_utils.utils import cached_property
88

99
from .utils.files import clean_header
1010

0 commit comments

Comments
 (0)