Skip to content

Volumetric analysis callback error: getattr(): attribute name must be string #917

Open
@anders-kiaer

Description

@anders-kiaer
Traceback (most recent call last):
  File ".../python3.6/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File ".../python3.6/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File ".../python3.6/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File ".../python3.6/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File ".../python3.6/site-packages/dash/dash.py", line 1336, in dispatch
    response.set_data(func(*args, outputs_list=outputs_list))
  File ".../python3.6/site-packages/dash/_callback.py", line 151, in add_context
    output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
  File ".../python3.6/site-packages/webviz_subsurface/plugins/_volumetric_analysis/controllers/distribution_controllers.py", line 116, in _update_page_1p1t_and_custom
    yaxis=dict(showticklabels=True),
  File ".../python3.6/site-packages/webviz_subsurface/_figures/px_figure.py", line 18, in create_figure
    fig: go.Figure = make_initial_figure(plot_type=plot_type, **plotargs)
  File ".../python3.6/site-packages/webviz_subsurface/_figures/px_figure.py", line 57, in make_initial_figure
    plotfunc = getattr(px._chart_types, plot_type)
TypeError: getattr(): attribute name must be string

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog 📝

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions