Skip to content

Commit

Permalink
linting pylint 2.5.0 (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
asnyv authored Apr 27, 2020
1 parent 708b195 commit 843bda0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/webviz-subsurface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
run: pip freeze

- name: Check code style & linting
if: matrix.pandas-version == '1.*'
run: |
black --check webviz_subsurface tests setup.py
pylint webviz_subsurface tests setup.py
Expand Down
5 changes: 3 additions & 2 deletions webviz_subsurface/_datainput/xsection.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def _plot_well_traj(self, zvals, hvals):

# ax.plot(hvals_copy, zvals_copy, linewidth=6, c="black")

# pylint: disable-too-many-locals
def _plot_well_zlog(self, df, zvals, hvals, zonelogname, zomin=-999):
"""Plot the zone log as colored segments."""

Expand Down Expand Up @@ -271,7 +272,7 @@ def _plot_marginal_log(self, df, zvals, hvals, logname, row=1):
1,
)

# pylint: disable=too-many-locals
# pylint: disable=too-many-locals, unused-argument
def plot_cube(
self,
cube=None,
Expand Down Expand Up @@ -337,7 +338,7 @@ def plot_cube(
1,
)

# pylint: disable=too-many-locals
# pylint: disable=too-many-locals, unused-argument
def plot_grid3d(self, vmin=None, vmax=None, alpha=0.7):
"""Plot a sampled grid with gridproperty backdrop.
Expand Down
4 changes: 2 additions & 2 deletions webviz_subsurface/plugins/_running_time_analysis_fmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ def render_parcoord(plot_df, params, theme, colormap, color_col, colormap_labels
"len": 0.3,
},
},
),
)
else:
data["line"].update( # pylint: disable=expression-not-assigned
{"colorbar": {"title": "Running time", "xanchor": "right", "x": -0.02,},},
),
)

layout = {}
layout.update(theme["layout"])
Expand Down
6 changes: 3 additions & 3 deletions webviz_subsurface/plugins/_surface_viewer_fmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from dash.exceptions import PreventUpdate
import dash_html_components as html
import dash_core_components as dcc
from webviz_subsurface_components import LayeredMap
import webviz_core_components as wcc
from webviz_config.webviz_store import webvizstore
from webviz_config.common_cache import CACHE
from webviz_config import WebvizPluginABC
import webviz_core_components as wcc
from webviz_subsurface_components import LayeredMap

from webviz_subsurface._datainput.fmu_input import get_realizations, find_surfaces
from webviz_subsurface._datainput.surface import make_surface_layer, load_surface
Expand Down Expand Up @@ -542,7 +542,7 @@ def add_webvizstore(self):
filename = f"{name}--{attr}"
if date is not None:
filename += f"--{date}"
filename += f".gri"
filename += ".gri"
filenames.append(filename)

# Copy all realization files
Expand Down

0 comments on commit 843bda0

Please sign in to comment.