Skip to content

choose a unit system on data object level #8

Description

@rometsch

It would be handy to have a flag which specifies the unit system toe.g. cgs.

Right now a radius array might contain a Quantity with [1,2,3,4] 1.5e10 cm instead of [1,2,3,4] au.
One then needs to call .decompose().to('au').value to make sure its the correct unit.

Add a new flag to Data(...., unit_system="cgs")

Apply the decompose step somewhere in getters of field or scalar. Maybe also grid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions