frontend icon indicating copy to clipboard operation
frontend copied to clipboard

invalid GeV unit

Open jkotan opened this issue 3 years ago • 5 comments

Summary

GeV unit is not allowed. You cannot change quantity value with the web server in the Edit widget.

Steps to Reproduce

Try to change Value of quantity with the GeV unit.

Current Behaviour

After accepting changes Invalid unit is displayed

Expected Behaviour

One should be able to change a quantity value with the GeV unit.

Extra Details

I attach screenshot gev-invalid-unit .

jkotan avatar Aug 11 '22 13:08 jkotan

There is a list of predefined units which Scicat user to check if the unit is valid or not. For eV I can see eV and keV. I think we can add other unit prefix like M, G, T, P, E, Z Y too. What do you think @nitrosx and @stephan271 ?

nguyenlinhlinh avatar Aug 11 '22 14:08 nguyenlinhlinh

I was expecting that all prefixes are supported for all units. Isnt that the case ?

stephan271 avatar Aug 11 '22 14:08 stephan271

No, the list has units with some common prefixes but not all prefixes. See here

nguyenlinhlinh avatar Aug 11 '22 14:08 nguyenlinhlinh

For me it is weird eV and keV are treated as length units instead of energy units.

jkotan avatar Aug 11 '22 14:08 jkotan

No, the list has units with some common prefixes but not all prefixes. See here

Sorry, confused this with the handling of the units in the backend.

stephan271 avatar Aug 11 '22 14:08 stephan271