jonnymaserati / welleng

A collection of Wells/Drilling Engineering tools, focused on well trajectory planning for the time being.
Apache License 2.0
113 stars 31 forks source link

Quick Start example error: Plotter.__init__() got an unexpected keyword argument 'names' #184

Closed valgit7 closed 1 month ago

valgit7 commented 1 month ago

I'm trying to get familiar with Welleng, but when running the Quick Start example, I'm getting this when trying to plot it:

Traceback (most recent call last):
  File "file.py", line 92, in <module>
    we.visual.plot(
  File "/welleng/visual.py", line 335, in plot
    plt = Plotter(data, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/welleng/visual.py", line 45, in __init__
    super().__init__(*args, **kwargs)

TypeError: Plotter.__init__() got an unexpected keyword argument 'names'

I installed welleng[all] with everything updated.

Any recommendations on how to solve the error?

Thanks in advance!

jonnymaserati commented 1 month ago

Hi there

Apologies, I made some changes to that Plotter a while back and obviously didn't check this quick start code. Quick fix is to remove or comment out the line with the names, they're not required for the compute. To work properly now the names should be in the survey.SurveyHeader.name property in the Survey - I think I removed the mapping of names in the plotter.

I'll add this to the list of things to do!

Regards, Jonny

jonnymaserati commented 1 month ago

Closed with #189