OasisLMF / OasisUI

User Interface for the Oasis platform.
BSD 3-Clause "New" or "Revised" License
16 stars 17 forks source link

AAL bar plot crash #277

Closed sambles closed 1 year ago

sambles commented 2 years ago

Issue Description

UI crash when selecting AAL barplot (tested using PiWind)

Steps to Reproduce (Bugs only)

Screenshot from 2022-03-10 12-44-21

Version / Environment information

OasisUI: 1.11.2 Platform: 1.24.0

Example data / logs

── Column specification ───────────────────────────────────────────────────────
cols(
  loc_id = col_double(),
  portnumber = col_double(),
  accnumber = col_character(),
  locnumber = col_double(),
  loc_idx = col_double(),
  peril_id = col_character(),
  coverage_type_id = col_double(),
  tiv = col_double(),
  coverage_id = col_double(),
  item_id = col_double(),
  layer_id = col_double(),
  agg_id = col_double()
)

add visualizationSBR-outputplots-oasisuiIncrementalPanelOutput-1 
.reactiveUpdateSelectGroupInput called
.reactiveUpdateSelectGroupInput called
Plotting AAL bar plot for loss types: GUL, variables: AAL, granularities: All Risks
Sanity checks passed
Reading file gul_S1_aalcalc.csv
Reading file gul_S1_summary-info.csv
Warning: Error in : Can't rename columns that don't exist.
x Column `exposure_value` doesn't exist.
  [No stack trace available]
benhayes21 commented 2 years ago

Matt to investigate

RolandASc commented 2 years ago

This appears to be a left-over from an old change to the summary-info file.

I have prepared a fix.