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

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

Closed
valgit7 opened this issue Jul 4, 2024 · 2 comments

Comments

@valgit7
Copy link

valgit7 commented Jul 4, 2024

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!

@valgit7 valgit7 changed the title Quick Start example error: Quick Start example Quick Start example error: Plotter.__init__() got an unexpected keyword argument 'names' Jul 4, 2024
@jonnymaserati
Copy link
Owner

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
Copy link
Owner

Closed with #189

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

No branches or pull requests

2 participants