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

PoissonPointProcess - ValueError: Length mismatch #68

Open
horsto opened this issue Nov 30, 2020 · 0 comments
Open

PoissonPointProcess - ValueError: Length mismatch #68

horsto opened this issue Nov 30, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@horsto
Copy link

horsto commented Nov 30, 2020

Hi, I am occasionally running into the following error (I am not sure yet what causes it exactly ...). Any ideas?

pointpats.version = '2.2.0'
pandas.version = '1.1.3'

random_samples_lambda = PoissonPointProcess(points.window, points.n, conditioning=True,  samples=1000, asPP=True)
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pointpats/process.py", line 249, in __init__
    super(PoissonPointProcess, self).__init__(window, n, samples, asPP)
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pointpats/process.py", line 113, in __init__
    self.realizations[sample] = PP(points, window=self.window)
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pointpats/pointpattern.py", line 90, in __init__
    self.df.columns = col_names
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pandas/core/generic.py", line 5152, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/_libs/properties.pyx", line 66, in pandas._libs.properties.AxisProperty.__set__
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pandas/core/generic.py", line 564, in _set_axis
    self._mgr.set_axis(axis, labels)
  File "/home/ubuntu/dj36/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 227, in set_axis
    f"Length mismatch: Expected axis has {old_len} elements, new "
ValueError: Length mismatch: Expected axis has 1 elements, new values have 2 elements
@sjsrey sjsrey added the bug label Dec 10, 2020
@sjsrey sjsrey self-assigned this Dec 10, 2020
@ljwolf ljwolf added this to the Next Release milestone Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants