Skip to content

"if data" issue #30

@jmgo

Description

@jmgo

Hi!

Just to warn for an issue that happened to me, when using "if data" it was giving me an error because my data variable was a np.array. The issue was in line 140 of the pybasicbayes/pybasicbayes/distributions/multinomial.py file.

In my case, I corrected the issue in a simple way (probably not the best)":
before -> data = data if data else [None]_len(weights)
after -> data = data if list(data) else [None]_len(weights)

If you could resolve this issue, it would be beneficial for the other users.

Best Regards,
jmgo

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