File tree 4 files changed +5
-5
lines changed
plugins/_co2_leakage/_utilities
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 87
87
"console_scripts" : ["smry2arrow_batch=webviz_subsurface.smry2arrow_batch:main" ],
88
88
},
89
89
install_requires = [
90
- "dash>=2.0.0" ,
90
+ "dash>=2.0.0,<3 " ,
91
91
"dash_bootstrap_components>=0.10.3" ,
92
92
"dash-daq>=0.5.0" ,
93
93
"defusedxml>=0.6.0" ,
Original file line number Diff line number Diff line change 5
5
import jsonschema
6
6
import webviz_config
7
7
import yaml
8
- from pkg_resources import DistributionNotFound , get_distribution
8
+ from pkg_resources import DistributionNotFound , get_distribution # type: ignore
9
9
10
10
from webviz_subsurface ._utils .user_defined_vector_definitions import (
11
11
USER_DEFINED_VECTOR_DEFINITIONS_JSON_SCHEMA ,
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def _show_color_picker(
171
171
if not cell :
172
172
raise PreventUpdate
173
173
row_no = cell ["row" ]
174
- return dash_daq .ColorPicker ( # pylint: disable=not-callable
174
+ return dash_daq .ColorPicker (
175
175
{"id" : self ._uuid , "element" : "picker" },
176
176
label = f"Color for { [col for col in self ._dframe .iloc [row_no ] if col != 'COLOR' ]} " ,
177
177
value = {"hex" : current_color_store [row_no ]},
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def _prepare_pattern_and_color_options_statistics_plot(
228
228
229
229
230
230
def _find_default_option_statistics_figure (
231
- df : pd .DataFrame , categories : list [str ]
231
+ df : pd .DataFrame , categories : List [str ]
232
232
) -> str :
233
233
if "hazardous" in categories :
234
234
default_option = "hazardous"
@@ -611,7 +611,7 @@ def _add_hover_info_in_field(
611
611
p15 = prev_val + 0.15 * amount
612
612
p85 = prev_val + 0.85 * amount
613
613
y_vals = np .linspace (p15 , p85 , 8 ).tolist () * len (date_dict [date ])
614
- y_vals .sort ()
614
+ y_vals .sort () # type: ignore[attr-defined]
615
615
fig .add_trace (
616
616
go .Scatter (
617
617
x = date_dict [date ] * 8 ,
You can’t perform that action at this time.
0 commit comments