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

New DataRequest #81

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

New DataRequest #81

wants to merge 3 commits into from

Commits on Nov 28, 2024

  1. feat: variable as dataclass

    pgierz committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    32d655e View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. feat(data-request): add dataclasses for CMIP6 variables

    This commit introduces the `DataRequestVariable` abstract base class and
    its concrete implementation `CMIP6DataRequestVariable`. The new classes
    use the `dataclass` decorator to automatically generate special methods
    like `__init__` and `__repr__`.
    
    The `DataRequestVariable` class outlines the necessary properties and
    methods that any variable class should implement. The
    `CMIP6DataRequestVariable` class is a concrete implementation for CMIP6
    variables.
    
    Additionally, this commit includes methods for constructing
    `DataRequestVariable` instances from dictionaries and JSON files, as
    well as converting instances to dictionary representations.
    
    Unit tests for `CMIP6DataRequestVariable` have been added to ensure
    correct functionality.
    pgierz committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    6fbcf69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d2b9bbb View commit details
    Browse the repository at this point in the history