Skip to content

Code refactoring

Tasks

  • update python to 3.11.x and virtual environment software stack
  • update dash/plotly software stack (bootstrap): https://dash-bootstrap-components.opensource.faculty.ai/migration-guide/
  • extrapolate all hard-coded configuration to a configuration file
  • refactor data handler unifying classes handling 2d maps with a parent class and split
  • remove js in assets that can be imported automatically as external
  • access to the configuration -> one conf folder per application, dash_server will register to data_handler the path where conf is stored (environment variable)
  • remove all DEBUG prints with logging
  • document with numpy docstrings (added by @avilanov)

Structure

  1. INES PREPROC
  • conf (if needed)
  • all preproc folder contents
  • bin/nc_checker
  1. INES CORE
  • conf
  • map_handler
  • utils
  • bin (everything except nc_checker)
  1. APP
  • conf
  • tabs
  • dash_server
  • tests
  • assets
  • callback_tools (old tools)
  • router
  • map_handler
  • timeseries_handler

@erose @avilanov

Edited by Alba Vilanova