climate-resource / bookshelf

A bookshelf of useful preprocessed data
https://climate-resource.github.io/bookshelf/
MIT License
2 stars 0 forks source link

Dataset structure schema - [merged] #50

Closed lewisjared closed 3 weeks ago

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 6, 2023, 09:31

_Merges dataset_structureschema -> main

Pull request

Please confirm that this pull request has done the following:

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 6, 2023, 09:31

requested review from @yinilaii and @lewisjared

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 7, 2023, 14:31

added 1 commit

Compare with previous version

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 7, 2023, 15:16

added 1 commit

Compare with previous version

lewisjared commented 10 months ago

These all need docstrings. Particularly the type one. It should list the valid types that can be specified

    name: str
    """
    Name of the metadata dimensions
    """"
lewisjared commented 10 months ago

docstrings for the items. I don't think I did it previously, but we should start

lewisjared commented 10 months ago
class ControlledVocabulary(BaseModel):
lewisjared commented 10 months ago

Can you add a test without the CV field?

lewisjared commented 10 months ago

Did you mean to add this?

lewisjared commented 10 months ago
    An item in a controlled vocabulary for the a given dimensions
lewisjared commented 10 months ago

Should we call it a data dictionary? I think that term would resonate best. Also docstring

    data_dictionary: list[Dimension]
lewisjared commented 10 months ago
    Dimension information

    A dimension describes a feature of the metadata (expressed as a column in the index of an {py:class}`scmdata.ScmRun`).
lewisjared commented 10 months ago

In GitLab by @yinilaii on Jan 9, 2024, 12:52

Commented on src/bookshelf/schema.py line 77

changed this line in version 4 of the diff

lewisjared commented 10 months ago

In GitLab by @yinilaii on Jan 9, 2024, 12:52

Commented on src/bookshelf/schema.py line 79

changed this line in version 4 of the diff

lewisjared commented 10 months ago

In GitLab by @yinilaii on Jan 9, 2024, 12:52

Commented on src/bookshelf/schema.py line 137

changed this line in version 4 of the diff

lewisjared commented 10 months ago

In GitLab by @yinilaii on Jan 9, 2024, 12:52

Commented on src/bookshelf/schema.py line 88

changed this line in version 4 of the diff

lewisjared commented 10 months ago

In GitLab by @yinilaii on Jan 9, 2024, 12:52

added 1 commit

Compare with previous version

lewisjared commented 10 months ago

resolved all threads

lewisjared commented 10 months ago

added 1 commit

Compare with previous version

lewisjared commented 10 months ago

enabled an automatic merge when the pipeline for af9d076eee4457e3de600e410ec9af84848165f9 succeeds

lewisjared commented 10 months ago

mentioned in commit 07ed1f78866f3cc8ffd7a19f024fcf2082371873

lewisjared commented 7 months ago

unassigned @yinilaii