Skip to content

Feat(dashboard) : Using external data for clustering & changing json format for the result of aggregations#155

Open
NicoPL wants to merge 1 commit into
mainfrom
npl/feat/dashboard_aggregation
Open

Feat(dashboard) : Using external data for clustering & changing json format for the result of aggregations#155
NicoPL wants to merge 1 commit into
mainfrom
npl/feat/dashboard_aggregation

Conversation

@NicoPL
Copy link
Copy Markdown
Collaborator

@NicoPL NicoPL commented May 21, 2026

DONE:

  • moving functions to compute aggregation from views.py to the new file stats.py
  • using of external data to make clusters in which compute aggregations (depending on years and samples)
  • mapping of aggregation method (MRP, etc.) to the clusters, using 'for' and 'cod' fields for now
  • changing the format of the resulting JSON using {"year":{"sample":{data}, .. }, ..}
  • adding comments

Still TODO:

  • write other aggregation functions (SRS, SS, etc.)
  • write other aggregation functions (total and proportion) and create a configuration dictionary where write for each data what function to apply
  • write the right formula to compute standard errors which is much more complex that the common standard deviation that is coded for now
  • get the year in meteo.csv to map with data
  • deal with data series (eg. relative_abundance)
  • reorganize files:
    • make a constants.py to store constants and configurations of aggregation
    • keep in stats.py only the functions to compute aggregation
    • put in models.py the objects dealing with data and calling aggregation functions

@NicoPL NicoPL requested a review from arnaudfnr May 21, 2026 13:15
@NicoPL NicoPL changed the title FEAT(dashboard) : Use external data for clustering & change json format Feat(dashboard) : Use external data for clustering & change json format May 21, 2026
@NicoPL NicoPL changed the title Feat(dashboard) : Use external data for clustering & change json format Feat(dashboard) : Using external data for clustering & changing json format May 21, 2026
@NicoPL NicoPL changed the title Feat(dashboard) : Using external data for clustering & changing json format Feat(dashboard) : Using external data for clustering & changing json format for the result of aggregations May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant