Skip to content

Allow ability to delete default units #3436

@Virushaan

Description

@Virushaan

Describe the bug
Currently a scalar divided by a time unit such as 5/seconds will get converted into hertz 5Hz. However, for my usecase, hertz(hz) doesn't make sense to convert into. Ideally it would be possible to keep the evaluated value as 5/seconds and not simplify any further.

I have tried
math.Unit.deleteUnit('Hz')
and
delete math.Unit.UNITS['hertz'];
and neither seemed to have any impact. Open to any thoughts or ideas! Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions