Skip to content

Use pint to automate unit scaling #72

@LiamPattinson

Description

@LiamPattinson

Rather than requiring the user to get the scaling factor and new units right, I'm wondering if it might be possible to make pint a required dependency and have pint work out the scaling for you, so you could just say rescale_coords("mm", coord_names) and it'll work regardless of whether the original units are in femtometers or parsecs. I'm pretty sure you can even get it to do things like temperature to keV if you use the right settings. Possibly an extension for later though!

Originally posted by @LiamPattinson in #71 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions