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
Firstly, thanks for creating and sharing this awesome project!
Description
I believe there is a bug in the _interpolate_survey function in the survey module while handling the units. When working in the units of feet, this function throws the following error: AssertionError: inconsistent units with header.
While the header having units of feet is passed into the argument , the unit argument is left to default which is meters, causing this AssertionError. I guess setting unit=sh.depth_unit would resolve this.
Thanks!
The text was updated successfully, but these errors were encountered:
I'll take a closer look when I get time, but I don't doubt there's issues as the whole units part was not well implemented. Longer term I want to make the engine dimensionless and then call stuff like dls as a method that checks dimensions.
In the meantime, I would suggest assuming that the survey module works in meters and transform your input into meters (using the units module for example, which is just a wrapper on the pint library) and then converting back to your unit of choice after.
Firstly, thanks for creating and sharing this awesome project!
Description
I believe there is a bug in the
_interpolate_survey
function in the survey module while handling the units. When working in the units offeet
, this function throws the following error:AssertionError: inconsistent units with header
.Here is a minimal reproducer:
Bug
In the
_interpolate_survey
function, a new instance ofSurvey
is created:welleng/welleng/survey.py
Line 1624 in bc20a3b
While the
header
having units offeet
is passed into the argument , theunit
argument is left to default which ismeters
, causing thisAssertionError
. I guess settingunit=sh.depth_unit
would resolve this.Thanks!
The text was updated successfully, but these errors were encountered: