Skip to content

Commit 6717393

Browse files
committed
Refactor downloader_config from Abstract to base inheritance
1 parent 665d77b commit 6717393

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

climateset/download/downloader_config.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import copy
22
import inspect
33
import logging
4-
from abc import ABC
54
from pathlib import Path
65

76
import yaml
@@ -21,7 +20,7 @@
2120
AVAILABLE_CONFIGS = frozenset([CMIP6, INPUT4MIPS])
2221

2322

24-
class AbstractDownloaderConfig(ABC):
23+
class BaseDownloaderConfig:
2524
def __init__(
2625
self,
2726
project: str,
@@ -131,7 +130,7 @@ def add_to_config_file(self, config_file_name: str, config_path: str | Path = CO
131130
yaml.dump(existing_config, config_file, indent=2)
132131

133132

134-
class Input4mipsDownloaderConfig(AbstractDownloaderConfig):
133+
class Input4mipsDownloaderConfig(BaseDownloaderConfig):
135134
def __init__(
136135
self,
137136
project: str,
@@ -216,7 +215,7 @@ def _generate_plain_emission_vars(self):
216215
]
217216

218217

219-
class CMIP6DownloaderConfig(AbstractDownloaderConfig):
218+
class CMIP6DownloaderConfig(BaseDownloaderConfig):
220219
def __init__(
221220
self,
222221
project: str,

0 commit comments

Comments
 (0)