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

Update docs for basic task: getting tvd, northing and easting from md, inc, azi #65

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

kinverarity1
Copy link
Contributor

When trying to go from three arrays for MD, inclination and azimuth, to TVD, easting and northing, the documentation is misleading. It suggests:

dev = wp.deviation(
    md = md,
    inc = inc,
    azi = azi,
    )
tvd, northing, easting, dls = dev.mininum_curvature(course_length=30)

but the second line here results in an error - my code:

dev = wp.deviation(md=df.index, inc=df['TILT'], azi=df['AZIMUT'])
tvd, northing, easting, dls = dev.minimum_curvature()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Input In [35], in <cell line: 2>()
      9     y = float(las.well.NORTHING.value)
     10     dev = wp.deviation(md=df.index, inc=df['TILT'], azi=df['AZIMUT'])
---> 11     tvd, northing, easting, dls = dev.minimum_curvature()
     12     dhs.append({
     13         "las": las,
     14         "df": df,
   (...)
     17         "y": y
     18     })
     19 dh_df = pd.DataFrame(dhs)

TypeError: cannot unpack non-iterable minimum_curvature object

The PR updates the docs example to reflect how the package appears to work instead.

@jokva jokva merged commit ec833e1 into Zabamund:master Jun 22, 2022
@kinverarity1 kinverarity1 deleted the patch-1 branch June 22, 2022 22:15
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

Successfully merging this pull request may close these issues.

2 participants