sinkovit / Spatial-ecology

Space use software deployed in the Spatial Ecology Gateway
MIT License
2 stars 0 forks source link

Fix problems when user changes parameter(s) #13

Closed monaw closed 1 year ago

monaw commented 1 year ago
  1. Currently if the user changes a parameter (eg cell size), the data is reloaded and table is recalculated. Change this to:
    • [x] not reload data
    • [x] not recalculate table

See this comment below on parameters used for the 2 tables.

  1. Change behavior so that when the user changes following parameters, the listed function will be called again:
    • [x] sig2obs - calculateRaster2D(), plotMKDE()
    • [x] t max - calculateRaster2D(), plotMKDE()
    • [x] cell size - calculateRaster2D(), plotMKDE()
    • [x] buffer - calculateRaster2D(), plotMKDE()
    • [x] probabilities - plotMKDE()

See this comment below on processing order and parameters used.

monaw commented 1 year ago

For the All and Summary tables:

  1. table_all data comes from gps$original which comes from preprocessDataframe() which comes from loadDataframeFrom*()
  2. table_summary data comes from gps$summary which comes from animalAttributes(...,input$cellsize) which comes from preprocessDataframe() which comes from loadDataframeFrom*()
monaw commented 1 year ago

Order of processing:

  1. user initiates loadDataframeFrom*()
  2. preprocessDataframe() -> gps$data, gps$original
  3. animalAttributes() -> gps$summary
  4. user initiates plot
  5. calculateRaster2D((gps$data), input$sig2obs, input$tmax, input$cellsize, (input$buffer)...) -> gps$rasters
  6. plotMKDE((gps$rasters), input$probability...)