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

RuntimeError: call execute() before fetching arrays #5

Open
AnindyaNaskar opened this issue Jun 27, 2020 · 1 comment
Open

RuntimeError: call execute() before fetching arrays #5

AnindyaNaskar opened this issue Jun 27, 2020 · 1 comment

Comments

@AnindyaNaskar
Copy link

While trying to execute below line:

arr = pipeline.arrays[0]

Getting below error:

RuntimeError                              Traceback (most recent call last)
<ipython-input-15-dfed5279fb56> in <module>
      1 # Load Pipeline output in python objects
----> 2 arr = pipeline.arrays[0]
      3 description = arr.dtype.descr
      4 cols = [col for col, __ in description]
      5 df = pd.DataFrame({col: arr[col] for col in cols})

c:\users\anindya\anaconda3\envs\dsm1\lib\site-packages\pdal\pipeline.py in get_arrays(self)
     43 
     44     def get_arrays(self):
---> 45         return self.p.arrays
     46     arrays = property(get_arrays)

pdal\libpdalpython.pyx in pdal.libpdalpython.PyPipeline.arrays.__get__ (pdal/libpdalpython.cpp:2352)()

RuntimeError: call execute() before fetching arrays
@jmm688
Copy link

jmm688 commented Nov 23, 2020

Hello,

Did you change the pipeline? I ran into this problem until followed the instructions in https://pdal.io/faq
I ended up changing the plugin to something that my version of PDAL actually has.

type":"filters.hag"

to

type":"filters.hag_nn"

This worked for me!

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