Skip to content

SkillTable is a collection of SkillArrays#309

Merged
jsmariegaard merged 19 commits intomainfrom
skillarray-in-skilldataset
Dec 11, 2023
Merged

SkillTable is a collection of SkillArrays#309
jsmariegaard merged 19 commits intomainfrom
skillarray-in-skilldataset

Conversation

@jsmariegaard
Copy link
Copy Markdown
Member

@jsmariegaard jsmariegaard commented Dec 6, 2023

Each column of the SkillTable (formerly known as AggregatedSkill) is a SkillArray representing a single metric. Only SkillArray has a plotter.

s = cc.skill()
s.rmse.plot.bar()

Or shorter:

s = cc.skill("kge").plot.bar()

Soon the underlying datastructure will be a Dataset and a DataArray.


def __getitem__(self, x):
return self.df[x]
def __getitem__(self, x) -> SkillArray | SkillFrame:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsmariegaard jsmariegaard changed the title SkillArray is a collection of SkillFrames SkillTable is a collection of SkillArrays Dec 8, 2023
@jsmariegaard jsmariegaard changed the title SkillTable is a collection of SkillArrays SkillSet is a collection of SkillArrays Dec 9, 2023
@jsmariegaard jsmariegaard changed the title SkillSet is a collection of SkillArrays SkillTable is a collection of SkillArrays Dec 11, 2023
@jsmariegaard jsmariegaard marked this pull request as ready for review December 11, 2023 11:01
@jsmariegaard
Copy link
Copy Markdown
Member Author

This is first step in improving SkillTable. Replacing the data container to xr.Dataset is pushed to a subsequent PR (to minimize merge conflicts).

@jsmariegaard jsmariegaard merged commit 9579b46 into main Dec 11, 2023
@jsmariegaard jsmariegaard deleted the skillarray-in-skilldataset branch December 11, 2023 11:48
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 this pull request may close these issues.

2 participants