Skip to content

Commit

Permalink
Repair poetry environment (#182)
Browse files Browse the repository at this point in the history
* update poetry and test

* warning from widget deprecation
  • Loading branch information
ismael-mendoza authored Jul 16, 2021
1 parent bc2a029 commit d3fcfa9
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 278 deletions.
6 changes: 4 additions & 2 deletions btk/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,16 +524,18 @@ def plot_metrics_summary( # noqa: C901
key: widgets.Checkbox(description=key, value=False, layout=layout)
for key in measure_keys
}
title_widget = widgets.HTML("<em>Measure functions</em>")
measure_functions = [measure_functions_dict[key] for key in measure_keys]
measure_functions_widget = widgets.VBox(measure_functions, description="Measure functions")
measure_functions_widget = widgets.VBox([*measure_functions, title_widget])
# Checkboxes for selecting the survey (if multiresolution)
if multiresolution:
surveys_dict = {
key: widgets.Checkbox(description=key, value=False, layout=layout)
for key in survey_keys
}
surveys = [surveys_dict[key] for key in survey_keys]
surveys_widget = widgets.VBox(surveys, description="Surveys")
title_widget = widgets.HTML("<em>Surveys</em>")
surveys_widget = widgets.VBox([*surveys, title_widget])
measure_surveys_widget = widgets.VBox([measure_functions_widget, surveys_widget])
else:
measure_surveys_widget = measure_functions_widget
Expand Down
Loading

0 comments on commit d3fcfa9

Please sign in to comment.