Skip to content

Move unit conversion for plots to frontend #36

@pastewka

Description

@pastewka

Is your feature request related to a problem? Please describe.
Analysis results are reported in some unit (typically one choses such that data values are close to unity), but when displaying in the frontend in a plot combining different results these units must be converted. All unit conversion currently happens in the backend in topobank.analysis.views via the Python library pint. This means the backend must actually inspect all analysis results. To minimize loading data from the S3 system, it would be better if unit conversion happened in the frontend where the data needs to be loaded anyway.

The first step for this would be to check if there is a JavaScript library that can do unit conversion, e.g. convert nm^3 to µm^3 etc.

This is a first step towards implementing #16

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions