Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mulit inheritance for Dataset() class #468

Closed
vergauwenthomas opened this issue Jul 30, 2024 · 0 comments · Fixed by #467
Closed

mulit inheritance for Dataset() class #468

vergauwenthomas opened this issue Jul 30, 2024 · 0 comments · Fixed by #467

Comments

@vergauwenthomas
Copy link
Owner

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__()
@vergauwenthomas vergauwenthomas linked a pull request Jul 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant