Skip to content

Can only specify a visaulization once #34

@samwalkow

Description

@samwalkow

Description

Once you pick a visualization, that option disappears. What if you want to create a list of two projection plots? That's not possible right now.

What I Did

In the schema_model.py file, this is how the Plot attribute is set up. How can we reuse specifications?

 Plot: Optional[List[Visualizations]]

I think we'll have to change the Visaulizations dataclass. Maybe we make more lists?

Right now we have:

class Visualizations(ytBaseModel):
    """
    This class organizes the attributes below so users
    can select the plot by name,
    and see the correct arguments as suggestions
    """

    SlicePlot: Optional[SlicePlot]
    ProjectionPlot: Optional[ProjectionPlot]
    PhasePlot: Optional[PhasePlot]

Should it be:

    SlicePlot: Optional[List[SlicePlot]]
    ProjectionPlot: Optional[List[ProjectionPlot]]
    PhasePlot: Optional[List[PhasePlot]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions