WayneGitShell / GWSDAT

GroundWater Spatiotemporal Data Analysis Tool (GWSDAT) R-Shiny implementation.
https://stats-glasgow.shinyapps.io/GWSDAT
31 stars 7 forks source link

Warning when rendering ACNDA/Time Series _after_ importing Basic Example. #207

Closed andrejadd closed 6 years ago

andrejadd commented 6 years ago

Warning: Error in [: subscript out of bounds Stack trace (innermost first): 103: plotTimeSeries [D:\1_Arbeit\1_GWSDAT\3_Shiny_Dev\GWSDAT/R/plotTimeSeries.R#100] 102: renderPlot [D:\1_Arbeit\1_GWSDAT\3_Shiny_Dev\GWSDAT/R/server.R#193] 92: 81: plotObj 80: origRenderFunc 79: output$time_series 4: 3: do.call 2: print.shiny.appobj 1:

andrejadd commented 6 years ago

Selected default Aquifer (Unknown Zone). This line causes the warning:

sm.h <- csite$Traffic.Lights$h[location, substance]

'location' is not present inside csite$Traffic.Lights$h. The location is from Aquifer "Deep Zone" - how did it come here? There seems to be a mix up somewhere.

In addition: Aggregation by Day also seems to fail after something else was imported (and Analysed) before.

andrejadd commented 6 years ago

Fixed: global csite was updated in "import Excel" event, but should not have to.