climate-resource / bookshelf

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

Data structure - [merged] #49

Closed lewisjared closed 3 weeks ago

lewisjared commented 11 months ago

In GitLab by @yinilaii on Nov 29, 2023, 14:18

_Merges datastructure -> main

Pull request

Please confirm that this pull request has done the following:

lewisjared commented 11 months ago

In GitLab by @yinilaii on Nov 29, 2023, 14:18

requested review from @yinilaii and @lewisjared

lewisjared commented 11 months ago

In GitLab by @yinilaii on Nov 29, 2023, 14:25

added 1 commit

Compare with previous version

lewisjared commented 11 months ago
def print_dataset_structure(data: ScmRun) -> None:
lewisjared commented 11 months ago

The types aren't needed here as we use type-hints above

lewisjared commented 11 months ago
    for column in data.meta_attributes:
lewisjared commented 11 months ago

pytest should be a development dependency not a project dependency. The difference is that that project dependencies will be installed by end-users of this package -they don't need to run the tests so don't need the dependency

lewisjared commented 11 months ago

Can we add a line under the headers to visually distinguish them?

        "model      region          scenario     unit            variable        \n"
        "-----      ------          --------     ----            --------        \n"
lewisjared commented 11 months ago

Nice. A few minor tweaks and this will be ready

lewisjared commented 11 months ago
    data
lewisjared commented 11 months ago
lewisjared commented 11 months ago

remove line and then run poetry lock --no-update

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

Commented on src/bookshelf/dataset_structure.py line 41

changed this line in version 3 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

Commented on src/bookshelf/dataset_structure.py line 29

changed this line in version 3 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

Commented on src/bookshelf/dataset_structure.py line 34

changed this line in version 3 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

Commented on pyproject.toml line 39

changed this line in version 3 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

Commented on src/bookshelf/dataset_structure.py line 24

changed this line in version 3 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:10

added 1 commit

Compare with previous version

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 11:12

resolved all threads

lewisjared commented 11 months ago

marked the checklist item Changelog entry added to /changelog as completed

lewisjared commented 11 months ago
def get_dataset_dictionary(data: ScmRun) -> dict[str, str|float|int]:
lewisjared commented 11 months ago

One last change and then I'll merge

lewisjared commented 11 months ago

approved this merge request

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 12:59

Commented on src/bookshelf/dataset_structure.py line 14

changed this line in version 4 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 12:59

added 1 commit

Compare with previous version

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 12:59

resolved all threads

lewisjared commented 11 months ago

Can you remove these?

lewisjared commented 11 months ago
from __future__ import annotations
lewisjared commented 11 months ago

approved this merge request

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 13:55

Commented on src/bookshelf/dataset_structure.py line 39

changed this line in version 5 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 13:55

Commented on src/bookshelf/dataset_structure.py line 9

changed this line in version 5 of the diff

lewisjared commented 11 months ago

In GitLab by @yinilaii on Dec 4, 2023, 13:55

added 1 commit

Compare with previous version

lewisjared commented 11 months ago

added 1 commit

Compare with previous version

lewisjared commented 11 months ago

approved this merge request

lewisjared commented 11 months ago

mentioned in commit 2173b0063267e13789efcdd93d725231ce773f55

lewisjared commented 7 months ago

unassigned @yinilaii