Skip to content

Unit Conversions in Ubermag website #263

@ZhiyuZhang001

Description

@ZhiyuZhang001

Hi:
In the unit conversions part of Ubermag, is there a small mistake here?

from astropy import constants as const
induction_field = [(u.T, u.A / u.m, lambda x: x / const.mu0, lambda x: const.mu0 / x)]

I think it should be translated as follows,
induction_field = [(u.T, u.A / u.m, lambda x: x / const.mu0, lambda x: const.mu0 * x)]
namely, the operator in last item should be changed to a *

Metadata

Metadata

Assignees

No one assigned

    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