Skip to content

WrongProportionsException raised if proportions are a list #39

@mmosc

Description

@mmosc

Hi!

In v1.0.1 calling the InteractionSegmentation with a list of proportions summing up to 1. sometimes (wrongly) raises the WrongProportionsException. However, if this list is first converted to a np.array and then passed to the segmentation, the Exception is not raised. (see attachments)

I therefore see two possible solutions:

  1. Require the proportions argument to be a np.array (and not a list as it currently is)
  2. Convert the proportions to a np.array at the beginning of the segment method

What do you think would be best, @giuliowaitforitdavide ?

Cheers,
Marta

Screenshot from 2023-08-22 16-19-28
Screenshot from 2023-08-22 16-20-31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions