gxpy write_channel method
When trying to create an array channel using the gxpy library, I get an issue with the write_channel method.
I get the following error :
I am unsure what the issue is but I suspect that it might be something to do with line 1918 in gdb.py which has the following line.
.width doesn’t appear to be a function or method defined anywhere.
Is there another method I can use to write an array channel?
I get the following error :
AttributeError: 'numpy.ndarray' object has no attribute 'width'
I am unsure what the issue is but I suspect that it might be something to do with line 1918 in gdb.py which has the following line.
cs = self.new_channel(channel, va.dtype, array=va.width)
.width doesn’t appear to be a function or method defined anywhere.
Is there another method I can use to write an array channel?
0
Best Answer
-
Hi Tim,
Apologies for the delay. It appears you are calling the write_channel_va but passing a numpy array instead of a GXva instance to the method. That method is not intended to be used with numpy arrays in the va parameter.
Regards,
Jacques5
Answers
-
Thank you Jacques, that is what I was looking for. I will try harder next time!!0
This discussion has been closed.
Categories
- 692 All Categories
- 97 Products & Software
- 11 Seequent
- 179 Leapfrog
- 335 Geosoft
- 10 GeoStudio
- 4 Developers
- Seequent Evo APIs
- 157 GX Developer
- Early Access Programmes
- 1 Oasis montaj Field EAP