You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tracked down a bug in my code where the last depth frame in a LIS file ended up missing. The bug stemmed from a line where I wanted to read a selection of the channels over the entire depth:
My expected behaviour was to get every frame from logPass.xAxisFirstEngVal to and includinglogPass.xAxisLastEngVal, while I got every frame to but not including the latter, since TotalDepth here follows the Python convention on ranges.
This makes it somewhat inconvenient to get all frames for a selection of channels, since I suppose it means that you have to specify a stop depth afterlogPass.xAxisLastEngVal in order to get every frame. Therefore, I have two possible suggestions on how to change this behaviour:
Change the behaviour of LogPass.setFrameSetChX(...) so that it gets the frames to and including the specified stop frame depth. This would make it more convenient to use, although it might not be quite Pythonic.
Make the Xstart and Xstop arguments optional. If they are not specified, then default to getting every frame.
The text was updated successfully, but these errors were encountered:
I just tracked down a bug in my code where the last depth frame in a LIS file ended up missing. The bug stemmed from a line where I wanted to read a selection of the channels over the entire depth:
logPass.setFrameSetChX(file, channelMnemList, logPass.xAxisFirstEngVal, logPass.xAxisLastEngVal)
My expected behaviour was to get every frame from
logPass.xAxisFirstEngVal
to and includinglogPass.xAxisLastEngVal
, while I got every frame to but not including the latter, since TotalDepth here follows the Python convention on ranges.This makes it somewhat inconvenient to get all frames for a selection of channels, since I suppose it means that you have to specify a stop depth after
logPass.xAxisLastEngVal
in order to get every frame. Therefore, I have two possible suggestions on how to change this behaviour:LogPass.setFrameSetChX(...)
so that it gets the frames to and including the specified stop frame depth. This would make it more convenient to use, although it might not be quite Pythonic.Xstart
andXstop
arguments optional. If they are not specified, then default to getting every frame.The text was updated successfully, but these errors were encountered: