gxpy write_channel method

TimNixon
TimNixon Posts: 7 Calcite Rank Badge
edited February 2023 in GeoStudio
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 :

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?
Tagged:

Best Answer

Answers

  • TimNixon
    TimNixon Posts: 7 Calcite Rank Badge
    Thank you Jacques, that is what I was looking for. I will try harder next time!! :)
This discussion has been closed.