vergauwenthomas / MetObs_toolkit

A toolkit for using non-traditional meteorological observations
https://vergauwenthomas.github.io/MetObs_toolkit/
MIT License
12 stars 4 forks source link

mulit inheritance for Dataset() class #468

Open vergauwenthomas opened 1 month ago

vergauwenthomas commented 1 month ago

Use a multi inheritance method and a Dataset_constructor module to define the Dataset class. Here is a starting point:

from metobs_toolkit.datasetbase import DatasetBase
from metobs_toolkit.dataset_core import DatasetUserCore
from metobs_toolkit.dataset_settings_updater import DatasetSettingsCore

#Use multiple inheritance, so the full Dataset class is splid over mutliple
# child modules

class Dataset(DatasetBase, DatasetUserCore, DatasetSettingsCore()):
    def __init__(self):
        DatasetBase.__init__() #set the attributes
        DatasetUserCore().__init__()