Skip to content

@register_unit not global #151

@bodokaiser

Description

@bodokaiser

Hi all,

I am in the process of upgrading the Coils.jl package from Unitful to DynamicQuantities and register Gauss as units:

using DynamicQuantities: @register_unit, @u_str

@register_unit Gauss 1e-4u"T"

However, when I run my package tests, I need to re-register the unit; otherwise, I get "LoadError: ArgumentError: Symbol Gauss not found in Units or Constants."

I think this is not what one would expect and its a bit annoying for users to have to re-register the units themselves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions