Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The examples from README.md fail with Python 3.10, Numpy 1.25.2 #6

Open
thonic opened this issue Aug 28, 2023 · 1 comment
Open

The examples from README.md fail with Python 3.10, Numpy 1.25.2 #6

thonic opened this issue Aug 28, 2023 · 1 comment

Comments

@thonic
Copy link

thonic commented Aug 28, 2023

Just running the example:

from MHP import MHP
P = MHP()
P.generate_seq(60)

fails with:

.../hawkes/MHP.py", line 102, in generate_seq
    self.data = np.array(self.data)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (14, 2) + inhomogeneous part.
@BulBul-559
Copy link

I had the same problem in python 3.9, but when I switched to python 3.7 the problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants