Skip to content

Handling of datasets and samples #175

@felixzinn

Description

@felixzinn

Hi,

the handling of datasets and samples is currently handled in multiple python files (sample.py, xsection.py, plot_utils.py) which is a bit confusing IMO.

What do you think about introducing a dataclass for each dataset that holds all the necessary information. The workflow then only needs to specify the name of the dataclass and all fetching, merging and plotting is handled correctly in one place instead of multiple files?

@dataclass
class Dataset:
    name: ...
    sample: ....
    xsection: ...
    label: ...

something like this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions