Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 133
    • Issues 133
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.

  • nomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #398

Closed
Open
Created Aug 19, 2020 by Lauri Himanen@himanel1Maintainer

Unit/constant definition file

We use the Pint library to define our unit conversion routines. It is used already extensively in the backend by normalizers etc. to perform the conversions. Pint is also what mostly defines our natural constants, as they are often used in the conversions.

We should make our unit systems and natural constant definitions more explicit. As of now we rely on what the Pint package defines internally. A better approach would be to define these in a single file that is loaded by Pint and can also be served to other contexts. This would allow use to:

  • Have a single source for all units and constants used across the whole package. This will enable us to centrally manage the units and avoid breaking changes if the defaults of Pint change.
  • Communication of units/constants between backend<->frontend. The GUI will need to do unit conversion on the client, which requires syncing of this data from Python to Javascript. This will also affect the format of the definition file.
Edited Aug 19, 2020 by Lauri Himanen
Assignee
Assign to
Time tracking