Skip to content

Improve typing in fmudesign #741

@einarwar

Description

@einarwar

After adding type annotations to the fmudesign module, i noticed that some types was too narrow and resulted in type check violations for another repo i was working on.

The relevant places is:

  • fmudesign.design_distributions.draw_values() (and draw_values_DISTTYPE): Type of dist_parameters should be Sequence[str | float], as it accepts both string and floats and eventually converts it to float

  • fmudesign.create_design.is_consistent_correlation_matrix(): Type of matrix works with pandas.DataFrame, and should be widened to also accept it.

I can create a PR that fixes this Soon™️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions